Friday, September 16, 2011

Re: [android-developers] Intent.FLAG_ACTIVITY_REORDER_TO_FRONT does not work with PendingIntent

On Fri, Sep 16, 2011 at 1:37 PM, Shri <shri.borde@gmail.com> wrote:
However,
this does not seem to work even though I set
Intent.FLAG_ACTIVITY_REORDER_TO_FRONT - a new instance gets created if
MyActivity was not on top of my task's stack.

http://developer.android.com/reference/android/app/PendingIntent.html#getActivity(android.content.Context, int, android.content.Intent, int)

"Note that the activity will be started outside of the context of an existing activity, so you must use the Intent.FLAG_ACTIVITY_NEW_TASK launch flag in the Intent."

It might get set for you if you don't specify it.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment