开发者

Activity from a background activity?

开发者 https://www.devze.com 2023-02-11 14:28 出处:网络
Am having an application contains activity A,B,C and A is launched from the browser and B is launched from A, a count timer running on A launches an activity C if the timer hits. Could any one plz tel

Am having an application contains activity A,B,C and A is launched from the browser and B is launched from A, a count timer running on A launches an activity C if the timer hits. Could any one plz tell the stack order for the activity of this application. either A->B->C or A->C->B. However now the visible activiy should be C if i press back key f开发者_JAVA技巧rom C which should display either A or B ?

Thanks in advance.


You can try to launch B from A and C from A with

startActivityFromChild(this, intentOfC, REQ_CODE_FOR_C);

I'm not sure it may be useful to you.


This order is depends upon the launch mode of your activity

0

精彩评论

暂无评论...
验证码 换一张
取 消