Image Rescan issue
- by user1296361
I am working on a code that could scan the specific folder, when picture is taken, I used the following code:
Intent intent = new Intent();
intent.setType("image/*");
//intent.setAction(Intent.ACTION_GET_CONTENT);
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://sdcard/ghost/" + Environment.getExternalStorageDirectory())));
startActivityForResult(
Intent.createChooser(intent, "Select Picture"), 0);
It works fine, but when I exit the app and start the app again, scan is not performed, what could be the issue?
Help needed!!!