title: Android kill background application from our application programmatically
body: <p>My requirement forces me to kill another apps from my developed application. </p>
  
  <p>Details:
  My requirement is how to kill all background running application from currently developing application programmatically.</p>
  
  <p>I refer <a href="https://stackoverflow.com/questions/17829606/android-adb-stop-application-command-like-force-stop-for-non-rooted-device">this post</a> but I am not able to understand how to implement this. Actually I want to develop somthing like <a href="https://play.google.com/store/apps/details?id=com.yirga.shutapp" rel="nofollow noreferrer">ShutApp</a>. In this, application force-closes app other background running application.</p>
  
  <p>I am stuck into developing this feature. Any hint/suggestion would be helpful.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_SETTINGS"/&gt;
  &lt;uses-permission android:name="android.permission.GET_TASKS"/&gt;
  </code></pre>