onNewIntent() is for special cases where you are launching an existing activity instance with a new intent. For example, if you have a single activity for showing the information related to a notification -- the user can go to it from the notification, not close it, then get a new notification and go to it again and it can be set up to receive onNewIntent().
On Wed, Jul 29, 2009 at 5:01 PM, Jason Proctor < [email protected]> wrote: > > >Jason Proctor wrote: > >> i have two activities, the first accepts some user input and sets the > >> second's configuration to do stuff. the droid way of doing this, > >> correct me if i'm wrong here, is to set the configuration in the > >> intent using putExtra() and then override onNewIntent() to pick up > >> the new intent each time. otherwise getIntent() just picks up the > >> original one. > > > >If, in Activity A, you create a new Intent with new extras and call > >startActivity() with that Intent, that launches Activity B, Activity B > >will get the new extras. > > thanks man, that works. > > so what is the deal with onNewIntent()? is it effectively deprecated? > > -- > jason.software.particle > > > > -- Dianne Hackborn Android framework engineer [email protected] 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 [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 -~----------~----~----~----~------~----~------~--~---

