Well that's what I was actually aiming at and I think we agree -
OnNewIntent is afterall a method in the Activity called by the
underlying
framework on each launching - makes sense! Thanks NE

On Aug 1, 9:56 pm, Nikolay Elenkov <[email protected]> wrote:
> On Tue, Aug 2, 2011 at 4:18 AM, kypriakos <[email protected]> wrote:
>
> >> You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP
> >> flag. Then when you call startActivity() again, a new instance
> >> won't be created, the intent will be delivered to onNewIntent().
>
> > So if I still have a handle to the intent when I relaunch it as you
> > describe above, would I still be able to call methods on it.
>
> You can make a new intent every time, and change the data/extras
> as needed. Then in your Activity's onNewInent() you look at each
> received intent's contents and decide what to do.  Calling methods
> on an Intent doesn't communicate with the Activitiy, you need to
> deliver the intent.

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