Sunday, August 7, 2011

[android-developers] Intents

Hi all,

I start an new intent on an activity:

Intent intent = new Intent();

intent.seClass (..);

intent.setFlags(...NEW_TASK);
intent.addFlags(...SINGLE_TOP);

startActivity(intent).

In the target Activity I have the onNewIntent() that simply has code
for doing some processing.

I see the OnCreate get created but any subsequent executions of the
above block does not call the
OnNewIntent. Does the launcheMode="singleTask" need to be defined in
the manifest for this to work?
Is there anything else that is necessary to get this to work?

Thanks

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