Sometimes a newly taken photo from custom camera does not appear in the
gallery,for that you just need to send a broadcast
"ACTION_MEDIA_SCANNER_SCAN_FILE" so that the media scanner can scan
for the image you have saved
Apply the below code in your activity class
Intent ScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
ScanIntent.setData(uri); //captured image uri
sendBroadcast(ScanIntent);
for more info click this link http://androiddhina.blogspot.in/2015/05/how-to-create-folder- in-android-gallery.html
No comments:
Post a Comment