我想从Marshmallow上的另一个应用程序中杀死Android应用程序,但下面的代码无效
ActivityManager mActivityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
getApplicationContext().getSystemService(getApplicationContext().ACTIVITY_SERVICE);
mActivityManager.killBackgroundProcesses(packageName);