I want to know when im starting an activity using an Intent is the main activity(main) still in memory when im in subactivity?
Asked
Active
Viewed 87 times
0
-
And another, file strings.xml variables defined there always stay in memory during life of application ? – Hakon89 Jul 02 '11 at 07:09
-
Simply you can check it with memory profile tools.... – Pankaj Kumar Jul 02 '11 at 07:32
-
where i can take this tools ? – Hakon89 Jul 02 '11 at 07:37
-
These are two links, where yo can get better knowledge about those tools http://stackoverflow.com/questions/1147172/what-android-tools-and-methods-work-best-to-find-memory-resource-leaks and http://stackoverflow.com/questions/3857114/how-to-do-memory-profiling-for-an-android-application – Pankaj Kumar Jul 04 '11 at 05:14
1 Answers
0
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?

Balaji Khadake
- 3,449
- 4
- 24
- 38