title: Android call Activity in background
body: <p>I'm currently trying to place a call in the background.
  Therefore I call this in my Main-Activity:</p>
  
  <pre><code>Intent callIntent = new Intent(Intent.ACTION_CALL);
  callIntent.setData(Uri.parse("tel:123456789"));
  startActivity(callIntent);
  </code></pre>
  
  <p>I also wrote an Outgoing Call Receiver which changes the activity:</p>
  
  <pre><code>Intent myIntent = new Intent(context, DisplayCalcActivity.class);
  myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  context.startActivity(myIntent);
  </code></pre>
  
  <p>The problem is now, that the call-screen is in the foreground. If I switch manually from the call screen to my app, the activity has changed as I wanted, but how is it possible to start the activity in the foreground, so that the call-screen won't be shown at all?</p>