title: Can I change the activity label from within my activity?
body: <p>I have an activity which is going to switch around between several views, and in each view I would like the activity label to change. Is this possible? This is my manifest file.</p>
  
  <pre><code>   &lt;activity android:name=".MiscParamsTwo"
          android:label="@string/misc_parameters2" &gt;
          &lt;intent-filter &gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>I would like to change the "@string/misc_parameters2" every time I switch views. I am doing this through the android menu.</p>
  
  <pre><code>case R.id.item3:
          // Anti-Pump
          setContentView( R.layout.antipump_phaserotation );
          return true;
      case R.id.item4:
          // Relaxed Close
          setContentView( R.layout.relaxed_close );
          return true;
      case R.id.item5:
          // Misc Parameters 1
          setContentView( R.layout.misc_params_one );
          return true;
      case R.id.item6:
          setContentView( R.layout.misc_params_two );
          // Misc Parameters 2
          return true;
      case R.id.item7:
          setContentView( R.layout.dnp_three );
          // DNP3 Setup
          return true;
  </code></pre>