If your activity is at the root of the task, and the whole task is being brought to the foreground with another activity on top of it, then it will never receive onNewIntent(). Otherwise if it uses singleTop mode it will receive onNewIntent(). This is used extensively in the built-in apps.
On Wed, May 20, 2009 at 3:14 PM, Jason Proctor <ja...@particularplace.com>wrote: > > indeed, i tried logging in onNewIntent() too, but it isn't being > called in this case. > > > >getIntent() always returns the original intent used to start an > >activity. When it is brought to the foreground with a new intent > >(and is singleTop), you will receive that new intent in > >onNewIntent(). > > > >On Wed, May 20, 2009 at 10:55 AM, Jason Proctor > ><<mailto:ja...@particularplace.com>ja...@particularplace.com> wrote: > > > > > >a while back i posted an issue i was having when my BroadcastListener > >was listening for phone state and sending the info over to an > >Activity which would present UI. but getIntent() in the receiving > >Activity always brought back the initial one. should i be using > >something off PendingIntent in that case too? > > > >thanks > > > > -- > jason.software.particle > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---