开发者

Activity from a background activity?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜