Wednesday, September 22, 2010

[android-developers] How to bring stop activity to foreground (restart) by itself ??

Hi~

How to bring stop activity to foreground (restart) by itself ??

i use Broadreceiver and intent to restart my activity:

Intent restartIntent = new Intent();
restartIntent.setClass(context,Main.class );
restartIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(restartIntent);

but always start two activity (include original activity)

how to restart my original activity??

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