开发者

Reusing the main activity

开发者 https://www.devze.com 2023-04-07 03:23 出处:网络
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

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

精彩评论

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