How can I close background processes from my Android app? -


i developing android application. how can close background process music player or video player?

as of android 2.2 , above can kill background processes. if want kill background process can use following:

private activitymanager actman = (activitymanager) this.getsystemservice(activity_service); actman.killbackgroundprocesses("com.root.package"); 

also android manifest must include permission:

android.permission.kill_background_processes


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -