killprocess method does kill the processes but why the processes restart again and what is suppose to do for not restarting the process again. Here goes my code.
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
List<RunningAppProcessInfo> services = manager.getRunningAppProcesses();
for (RunningAppProcessInfo info : services) {
int service1name = info.pid;
android.os.Process.killProcess(service1name);
}
Thanks for your concern.