title: popup outside my application for incoming call
body: <p>I have a broadcast receiver for intercept an incoming call.
  After that, I have to show a popup with some informations, I created an Activity PopupActivity and I call it in this way</p>
  
  <pre><code>       Intent newIntent = new Intent(context, PopupActivity.class);
                      newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                      newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                      context.startActivity(newIntent);
  </code></pre>
  
  <p>the activity onCreate method is the follow</p>
  
  <pre><code>  this.requestWindowFeature(Window.FEATURE_NO_TITLE);
      setContentView(R.layout.toast);
      WindowManager.LayoutParams wmlp = getWindow().getAttributes();
  
      wmlp.gravity = Gravity.TOP | Gravity.CENTER_VERTICAL;
      setFinishOnTouchOutside(false);
  </code></pre>
  
  <p>and this is the manifest</p>
  
  <pre><code>        &lt;activity
          android:name=".PopupActivity"
          android:theme="@android:style/Theme.Dialog"&gt;&lt;/activity&gt;
  </code></pre>
  
  <p>with HsetFinishOnTouchOutside(false) I prevent the dialog closing when I touch outside the popup, this is fine, but I want touch the dialer for answer the call.
  So I need to keep the focus outside the popup without closing it.</p>
  
  <p>Second question, I have a delay between the incoming call and the response of the broadcast receiver, how can I make it more responsive?</p>