9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2024-10-06 10:22:07 +08:00

Fix error Java

This commit is contained in:
Christophe BOUCAUT 2015-07-10 09:56:15 +02:00
parent 74c75e258f
commit 34a9494aed

View File

@ -797,7 +797,7 @@ public class CameraActivity extends Activity {
Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
File pictureFile = new File(pathPicture); File pictureFile = new File(pathPicture);
Uri pictureFileUri = Uri.fromFile(pictureFile); Uri pictureFileUri = Uri.fromFile(pictureFile);
mediaScanIntent.setData(pictureFile.getAbsolutePath()); mediaScanIntent.setData(pictureFileUri);
this.sendBroadcast(mediaScanIntent); this.sendBroadcast(mediaScanIntent);
} else { } else {
Log.e("customCamera", "The directory for storage the picture in the gallery doesn't exist and his creation is failed."); Log.e("customCamera", "The directory for storage the picture in the gallery doesn't exist and his creation is failed.");