title: How to kill other apps?
body: <p>How can I kill other applications? I can launch other applications using intents but can't find a way to kill them.</p>
  
  <p>This launches the application:</p>
  
  <pre><code>Intent i = new Intent();
      i.setAction(Intent.ACTION_MAIN);
      i.addCategory(Intent.CATEGORY_LAUNCHER);
      i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      i.setComponent(
          new ComponentName("com.bla.bla...", 
              "com.bla.bla.Main"));
      context.startActivity(i);
  </code></pre>
  
  <p>I've tried to use the activity manager's kill</p>
  
  <pre><code>killBackgroundProcesses(String packageName)
  </code></pre>
  
  <p>but that does nothing.</p>
  
  <p>I've also tried </p>
  
  <pre><code> appContext.stopService(intent)
  </code></pre>
  
  <p>but that did nothing</p>