So, I developed an app which can delete picture on the background and then
I use sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
Uri.parse("file://" + Environment.getExternalStorageDirectory()))); . This
works great on ICS, that if something is deleted, Gallery will refresh and
the thumbnail will be removed.
But on older phones, nothing happened. After I remove the picture, the
thumbnail stays in Gallery, if I click on thumbnail, nothing shows. I
reboot the phone, the thumbnail stays in Gallery. But if I go to those file
explorer type of app, just delete another file, then it triggered rescan,
and the thumbnail in question is removed. My question is that when I reboot
the phone, it did the rescan already, why the thumbnail didn't get removed
the first time, but the file explorer type of app's rescan worked. And does
anyone know how those file explorer apps does the rescan?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en