android kill another app programmatically code example
Example: 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" />