Picture file captured with camera intent empty for a while in onActivityResult
问题 I am having a very strange bug trying to take a picture via intent. Activity code (a little simplified): private void startCapture() throws IOException { // Create output file final File photoFile = makePhotoFile(); _photoPath = photoFile.getAbsolutePath(); Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); /* IMPORTANT NOTE TO READERS * As of Android N (which went out shortly after I posted this question), * you cannot use Uri.fromFile this way anymore. * You should use a