There isn't a right way to kill a process, you just shouldn't be doing it, quite literally I'm not even sure you can. These aren't "normal" Linux or Java processes, they're managed by the system. You can call finish(), which may shortly result in your process being killed by the system, but it may not.
You have no access to processes other than your own. Each application runs with its own user id, and normal Linux user isolation applies. Cheers, Justin On Jan 9, 9:09 am, H <emud...@gmail.com> wrote: > then what't the right way to do it?. > can I kill processes that were not started by my own app? > > On Jan 9, 4:06 am, "Justin (Google Employee)" <j...@google.com> wrote: > > > This isn't the proper way to run anything in Android, why are you > > doing this? > > > Cheers, > > Justin > > Android Team @ Google > > > On Jan 8, 6:15 am, CodePupil <murliv...@gmail.com> wrote: > > > > I don't be able to destroy the process started by > > > process = Runtime.getRuntime().exec(<process name>); > > > : > > > : > > > : > > > process.destroy()// it doesn't kill the process started above > > > > Does anybody know why Its not working and how should I make it able to > > > work ? > > > > Thanks in advance ! > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---