I am beginner in android. When i click a Button KILL selected apps to close or kill a Particular(Running) Application or Selected Application. I Know it is possible. But how to work out it. My Sample UI is
http://answers.oreilly.com/index.php?app=core&module=attach§ion=attach&attach_rel_module=post&attach_id=555
I am try to use some code. But all the codes can be used to close only for activities. Not Closed Application. May i tried to refer some stackoverflow answers. But i am not clearly understand anything. My code is
finish();
System.exit(0);
Intent i = new Intent();
i.setAction(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_HOME);
startActivity(i);
android.os.Process.killProcess(android.os.Process.myPid());
Please reply your Answers and comments are valuable me. Thanks.