Right now I'm starting an Activity (call this Activity A) from outside of an Activity context - therefore Activity A is hosted in its own task. Activity A in turn calls Activity B for result. Since I want only 1 instance of Activity A running at any given time, I'm setting Activity A's launch mode to "singleTask".
Here comes the problem: from Activity B, the user clicks Home. He then tries to start Activity A again. The existing task is brought to the front, but for some reason Activity B automatically finishes before Activity A's onNewIntent() is called. This in turn terminates Activity A altogether.
I'd really appreciate it if someone can tell me what's wrong.
Thanks!
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment