I started testing my application on the Moto E2, which is one of the first Android Lollipop devices on the marked ones. It turns out that I suddenly have a problem with capturing images using the camera . I can not get the image.
Create an image capture target using:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, PICK_FROM_CAMERA);
Upon returning to my activity Intentdoes not contain data, i.e. data.getData()returns null.
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:
(...)
}
}
Moto E2 runs Android 5.0.2:

SO . , , Android, KitKat Jelly Bean (. ). ?
Galaxy S4 mini Android 4.4.2:
