Karteek N wrote: > I started a sample application and called finish() method when user > clicks the button. > Then it is showing the android home screen and called the onDistroy() > method also. > But if i am executing the 'ps' command in android shell still it is > showing the pid of my application. > What is the meaning of finish()?
It destroys the activity and returns control to the previous activity in the stack. > Is it not terminate the process? No. > if not how can i terminate the process(we can do kill -9 pid in android > shell but i want programmatic approach) You do not want to terminate the process. If all of your components (activities, services, etc.) are destroyed, your process will be recycled for use with another application at some point in the future. Just make sure you have stopped any of your services that you started, and leave the process alone, please. -- 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 *Advanced* Android Development_ Version 1.6 Available! -- 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

