title: createScreenCaptureIntent doesn't return result
body: <p>I'm trying to deal with the new Android Lollipop MediaProjection API.</p>
  
  <p>I have found that (at least on my stock Samsung Galaxy S4 jfltexx) when I start the intent to get permission to capture the screen (<code>ProjectionManager.createScreenCaptureIntent()</code>), I won't have a result in <code>onActivityResult</code> unless I have checked "Don't ask again" on the preceding try ...</p>
  
  <pre><code>private static final int ALLOW_SCREENSHOT_REQ = 102;
  
  {
   ...
          if(Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {
              System.out.println("request permission");
              startActivityForResult(mProjectionManager.createScreenCaptureIntent(), ALLOW_SCREENSHOT_REQ);
          }
   ...
  }
  </code></pre>
  
  <p>And the result handling:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      System.out.println("RebootActivity.onActivityResult(" + requestCode + "," + resultCode + ", data)");
  }
  </code></pre>
  
  <p>The permission dialog is showing well, but my activity gets hidden and it never goes to <code>onActivityResult</code>.</p>
  
  <p>Any idea of what's going wrong?</p>