If you have the flow : main -> title detail -> player, you press Home, then the Launcher icon for you app, it will just go back to your app with "player" being the displayed activity. it basically just took you back to where you were. This is because the intent the Launcher used is the same intent used to start the app in the first place.
If you add a notification and you want it to open the app like the launcher does, you'll use the same intent as well. That means that if "player" is shown, and you press the notification either the app will launch normally (if it was removed by swipe) or will just bring the app forward like any launcher intent does (if it was running previously and got backgrounded). If the intent directs to "player" directly and player isn't singleInstance, it will create a new "player" and add it to the stack (so the flow would be main -> title detail -> player -> player) Now days it is actually much more complex because of the addition of TaskStackBuilder (which btw can be used instead of propagating the inten)... you can read more about it here: http://developer.android.com/guide/topics/ui/notifiers/notifications.html On Wed, Apr 24, 2013 at 3:11 PM, Larry Meadors <[email protected]>wrote: > On Wed, Apr 24, 2013 at 6:03 AM, Piren <[email protected]> wrote: > > It's actually weird to me that it wasn't already like that... If you wish > > the notification to bring the app forward, the intent should match the > > launcher intent. the additional bundle flag you add will also make sure > to > > start activities if they weren't already there. > > Heh, I'm going to have to do some more research to understand what > you're telling me here - I'm not sure I'm following you completely. > > Larry > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

