title: How to manually pause Activity in Android
body: <p>I have two Activities , <code>A</code> and <code>B</code>. I called <code>B</code> from <code>A</code> throught this code :</p>
  
  <pre><code> Intent myIntent = new Intent(this, myAcitivity.class);        
   myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   startActivity(myIntent);
  </code></pre>
  
  <p>and on <code>B</code> , I placed a button to go back to activity <code>A</code> by pausing activity <code>B</code>. I tried to pause <code>B</code> so that it goes to background and go to <code>A</code> , but it is working. I tried </p>
  
  <p><strong>One Solution :</strong></p>
  
  <p><code>moveTaskToBack(true);</code></p>
  
  <p>Instead of placing <code>B</code> in background , it is also placing <code>A</code> in background.</p>
  
  <p>Any solutions ? </p>