On Mon, Aug 23, 2010 at 4:30 AM, arindam <arindam2gh...@gmail.com> wrote: > I have one doubt about back button. If one > activity is running on foreground and if I press > back button then it will destroy the activity. Now my question is is > destroy and kill a process is different?
Yes. > cause if I open DDMS I can see same process is running. Processes are cached for potential reuse. > Only if I stop > that process in DDMS then only > it disappear. Is that process will take any memory space after > pressing back button.. Yes, but that is Android's responsibility, not yours. Make sure you are not leaking any memory yourself (e.g., static data members, threads that do not terminate), and Android will take care of the process. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en