Stop or kill a service

I am developing a task manager application.. In that app, I display to the user a list of running apps and kill button beside each app. When user presses kill button the corresponding activity will …