Android camera intent returns null… sometimes [duplicate]
问题 This question already has answers here : Getting Uri Null in capture photo from camera intent in samsung mobile (3 answers) Closed 4 years ago . I am debugging my app in 2 different physical devices: Motorola Moto G, Android 4.4.2 LG OPTIMUS L5 II, Android 4.1.2 I am calling the camera in a button: buttonCamera.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent,