Android ActivityGroup's child activity setTitle not working
<p>I have TabActivityGroup:</p>

<p><code>MainActivity</code> class contain some tab, that name loading from db.  <code>Sales, Admin, Inquiry</code> like wise I have tab name</p>

<p>For <code>Sales</code> I created <code>SalesActivityGroup</code>.That class is :</p>

<pre><code>public class SalesActivityGroup extends ActivityGroup {
   public static SalesActivityGroup group;
   private  ArrayList&lt;View&gt; history;
   private LocalActivityManager mActivityManager;

   @Override
   protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       this.history = new ArrayList&lt;View&gt;();
       group = this;
         mActivityManager = getLocalActivityManager();
        Intent i = new Intent(getBaseContext(), SalesRouteActivity.class);
        Bundle bundle = new Bundle();
        bundle.putInt("positions", -1);
        i.putExtras(bundle);
        View view = mActivityManager.startActivity("Sales",i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP )).getDecorView();
    replaceView(view);

}

public void replaceView(View v) {
    history.add(v);
    setContentView(v);
}

public void back(){
    if ( history.size() &gt; 1 ){
       history.remove(history.size() - 1);
       View v = history.get(history.size() - 1);
       setContentView(v);
    }
    else {
       this.finish();
    }
}

@Override
public void onBackPressed() {
    SalesActivityGroup.group.back();
}
}
</code></pre>

<p><code>SalesRouteActivity</code> is first Activity .In there i want to set up the title name.I did using this ways.But not working</p>

<pre><code> public class SalesRouteActivity extends Activity{
       @Override
       public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       // setContentView(R.layout.sales_routes);
      //getWindow().setTitle("Route");
          View viewToLoad = LayoutInflater.from(SalesActivityGroup.group).inflate(R.layout.sales_routes, null);
         this.setContentView(viewToLoad); 
         //this.setTitle("Route");
        //getWindow().setTitle("Route");
         SalesActivityGroup.group.setTitle("Route");
    }
</code></pre>

<p>}</p>

<p>Please advice me How can i set the Title name.</p>

<p>Thanks in advance</p>
