It seems you are not going to get a call to onNewIntent() because in
ayanir's example Activity A (the activity launched by the home screen)
is not on top of the task stack.

Apparently the market application is sending an intent for
action.MAIN, category.LAUNCHER. Maybe you would need some kind of
application state data to detect that Activity B is already running?



On Jan 28, 6:50 am, String <[email protected]> wrote:
> Did you read the instructions that Dianne posted?
>
> > Set android:launchMode="singleTop" on your first activity.  You will then
> > get an onNewIntent() when you are re-launched from home.  There you can
> > startActivity() for your second activity; if you want back from the second
> > activity to skip the first, you can call finish() in the first after
> > starting the second.
>
> Setting singleTop isn't sufficient. If you want to start a different
> activity than the one with the main/launcher intent, you need to
> handle it yourself.
>
> String

-- 
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