You do know that there already is a built-in way to do this in Android 
right? Settings -> Applications -> Manage applications -> select app -> 
Force close or Settings -> About -> Battery use -> select app -> Force close

Or you could do what I do to missbehaving apps, I uninstall them. 

If you must do it from within your app (why duplicate existing things?) you 
should start reading up on the ActivityManager 
http://developer.android.com/reference/android/app/ActivityManager.html or 
more specifically the killBackgroundProcesses method. 


-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/android-security-discuss/-/cB4TjDr4f9kJ.
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-security-discuss?hl=en.

Reply via email to