title: Camera Image Capture Does Not Return Data - on Some Device(s)
body: <p>I have started testing my app on a Moto E2, which is one of the first Android Lollipop devices on the marked. Turns out I'm unexpectedly having <strong>trouble capturing images with the camera</strong>. I cannot receive a picture.</p>
  
  <p>Creating an image capture intent using:</p>
  
  <pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  startActivityForResult(intent, PICK_FROM_CAMERA);
  </code></pre>
  
  <p>Upon returning to my activity the <code>Intent</code> contains no data, i.e. <code>data.getData()</code> returns null.</p>
  
  <pre><code>public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      if (resultCode != RESULT_OK) return;
  
      switch(requestCode) {
          case PICK_FROM_CAMERA:
          (...)
      }
  }
  </code></pre>
  
  <p>On Moto E2 running Android 5.0.2:
  <img src="https://i.stack.imgur.com/RMQn4.png" alt="enter image description here"></p>
  
  <p>Now there is a flood of questions on SO here with similar issues and a variety of different causes. What really puzzles me here is that this code works just fine on my other Android devices running KitKat and Jelly Bean (see below). <strong>What could be the reason for this behavior, and how can I fix it?</strong></p>
  
  <p>On Galaxy S4 mini running Android 4.4.2:
  <img src="https://i.stack.imgur.com/votFd.png" alt="enter image description here"></p>