How to kill other applications in android
<p>Can any body tel1 me  how to kill other applications when i open my application.For example i am playing some music and i opened my application and trying to kill the other applications using below code.I couldnot stop the music playing.`ActivityManager activityManager = (ActivityManager)getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);</p>

<pre><code>        for(RunningAppProcessInfo info:activityManager.getRunningAppProcesses()){
            activityManager.killBackgroundProcesses(String.valueOf(info.pid));
            activityManager.killBackgroundProcesses(String.valueOf(info.processName));

            }`.
</code></pre>

<p>I have given permissions in manifest file also. I am not getting any errors aslo.
Plz help me .Thanks in advance</p>
