Image Rescan issue

Posted by user1296361 on Stack Overflow See other posts from Stack Overflow or by user1296361
Published on 2012-05-31T22:33:26Z Indexed on 2012/05/31 22:40 UTC
Read the original article Hit count: 135

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!!!

© Stack Overflow or respective owner

Related posts about android

Related posts about path