Yes the system can destroy activities without killing the process. Real world: I guess it depends and what your are doing and the amount of free memory available.
Emulator: Dev Tools > Development Settings > "Immediatly destroy activities" This is a very useful option to have set when checking if you have implemented the activity lifecycle correctly. On Jun 17, 3:55 pm, Andrey Mandychev <[email protected]> wrote: > Hi, > > I have a question: > > Can Android destroy my Activity without killing the process in which > it's created? > > According to the documentation (http://developer.android.com/guide/ > topics/fundamentals/activities.html) it seems possible. onDestroy() > method could be called: either because the activity is finishing > (someone called finish() on it), or because the system is temporarily > destroying this instance of the activity to save space. > > Could you give me a possible scenario if it happens? What about > service? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

