On Tue, Jun 14, 2011 at 9:05 AM, Ferit Topcu <[email protected]> wrote:
> Perhaps if i'm using a PendingIntent:
>
> mPendingIntent =
> PendingIntent.getActivity(con.getApplicationContext(), 0, new
> Intent(con.getApplicationContext(),
> getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0)
>
> is it important which class is used?

getClass() needs to return an Activity.

You do not need getApplicationContext() here, in either location.

And if you want onNewIntent() to be invoked, I think you need both
FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_SINGLE_TOP, by my read of
the docs.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

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