简体   繁体   中英

ANDROID :How to start an existing activity as new activity from stack

I am using ActivityGroup in my application. I am starting each activity by :

     Window objWindow   = getLocalActivityManager().startActivity(argActivityId,argIntent); 
     View objView   = objWindow.getDecorView();
     setContentView(objView);   

But when I am trying to start an activity, that is already started by another activity, it will not start as a new activity, instead the old activity object is retained.

How can I start this as a new activity?

Thanking you...

设置FLAG_ACTIVITY_CLEAR_TOP调用startActivity前argIntent的意图标志。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM