I'm writing a simple task manager and I have finally figured out how
to kill other processes than your own by using killBackgroundProcesses
method. The problem of this
*actMan.killBackgroundProcesses("your.package.name")* is it would only
kill the "your.package.name" and it would be killed immediately once
the app has been opened.


So I figured I could do this:

1. Put the killBackgroundProcesses code inside the kill method so it
would be killed if I pressed the button associated with this method.
2. Replace it with actMan.killBackgroundProcesses(temp) >> so it
wouldn't be fixed and it would kill process that I want
3. Since I could see the processes corresponding PIDs, I was planning
of just typing the PID in the EditText which would then retrieve the
pid and using some function/code/method it would get the packageName
or processName which would then be entered into "temp" to kill that
process.


here's the image of my task manager:

http://i.imgur.com/1zpXg.jpg

-- 
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

Reply via email to