Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android kill other app programmatically by package

ActivityManager am = (ActivityManager) getSystemService(Activity.ACTIVITY_SERVICE);
am.killBackgroundProcesses(packageName);
	
Permission:

<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #kill #app #programmatically #package
ADD COMMENT
Topic
Name
5+1 =