hey guys,

i have a tab with an activitygroup as the intent of tab1.

my code of the activity(group):

public class TabActivityGroup extends ActivityGroup{

  protected static LocalActivityManager mLocalActivityManager;

  protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);

        replaceContentView(new Intent(this, dosomething.class));
  }

  public void replaceContentView(Intent newIntent) {

        View view = getLocalActivityManager().startActivity("id",
newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
                                                .getDecorView();

        this.setContentView(view);
  }
}

my task:

i do something in the "dosomething.class" which is loaded by default
in the ActivityGroup an after a click on a button, the activity inside
the tab1 should change to "dosomethingselse.class".

this is of course the wrong way to start the activity inside the tab1
('cause it overlay the tabactivity completly):
//        Intent i = new Intent(this, dosomethingselse.class);
//        startActivity(i);

so how can i get the reference of the "LocalActivityManager" inside
the "dosomething.class" to start the other acitivty
"dosomethingselse.class" from an method? or is there any way, how to
handle this better?

many thanks in advance!

best regards,
ludwig
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to