[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-21 Thread Taísa Cristina
Didn't work... if I only start B and after destroy B without destryoing A, nothing happens to A. But looking at TabHost implementation I could see what I was forgetting: requestFocus! When I request focus for B, A is automatically paused. To resume it, I start it again (as it's a single top activi

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-21 Thread Android Users
Just a guess. Try destroying the activity B without destroying activity A. This may resume the activity A as soon as the activity B is destroyed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-19 Thread Taísa Cristina
Thanks "Android" :) But I have a problem. I've tested destroying A and "starting" it again, but when I do "startActivity()" I get a null window. Do I need to use a different "id" whenever I start an activity (with the same intent), even if I pass "false" when I destroying (or rather, pausing) suc

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-19 Thread Android Users
Yes you can do that. You can get a LocalActivityManager from the ActivityGroup, and from that reference you can destroy the respective activities. actitivitygroup.getLocalActivityManager().destroyActivity(,true); And Accordingly you can start the other activity actitivitygroup.getLocalActivityMa