开发者

Reusing the main activity

I have a main activity from where I will be switching from one activity to another..So i don't want to re initialize every time..After the first time of creation , the same activity should be called wi开发者_如何学Cthout having to create it over and over again..how do I do this? #newbie-android


What you want to do is simply start both your activities and switch between them by bringing them to the foreground. You should refer to this question for a possible solution. This documentation might also help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜