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