Thanks Hackborn! It works really well!
On Tue, Jul 14, 2009 at 9:51 PM, Dianne Hackborn <[email protected]>wrote: > This is what the system's manage applications "force stop" button uses: > > > http://developer.android.com/reference/android/app/ActivityManager.html#restartPackage%28java.lang.String%29 > > On Tue, Jul 14, 2009 at 5:26 PM, sychee <[email protected]> wrote: > >> >> Hi, I am currently writing a program to kill processes that the users >> choose to end. From the logCat, I notice that a Signal 9 has been sent >> to the application but the process is still running. I am only able to >> kill my own process through the code below. I understand that the >> kernel only allow killing of processes that have some relation to my >> program, but how do I kill other processes other than my own? Please >> help. Thank you very much ! >> >> Below is my code: >> >> android.os.Process.killProcess(processID); >> >> >> >> > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

