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
Post a Comment