开发者

A question of optimisation and memory

I want to know when im starting an activity using an Intent is t开发者_C百科he main activity(main) still in memory when im in subactivity?


Read basics related to activity Lifecycle http://developer.android.com/reference/android/app/Activity.html If you want to clear(close) main-activity after starting new one(sub-activity) using intent, then you have to close it(main activity) manually. Android is going to take care of that all things related to activity lifecycle, why you want to close main-activity?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜