I obviously regard the file delete () the
SD card to confirm that it is indeed deleted
But the open system that "Album" or to see thumbnails (even open!)
How to ensure privacy, the album cache clean out
What settings do not, and can not allow the user to set the content of the point, another reboot seems normal, but on a restart
software is also not allowedYou shoes have encountered this problem supposed to die?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
getCacheDir (). getAbsolutePath (), you can get to the cache directory path you this application, generally
/ Data / data / *** (your application package name) / cache
You put getCacheDir () try to delete files in this directory
Reply:
I pulled the card is no thumbnail of
Soccer Club Samsung S4 Cases
Reply:
Not clean up the program cache it, but the next test, no, open the "System album" That's still a few pictures, had been able to preview, restart the machine would not, but can not allow the user to restart the machine, depressed
I just put DCIM / Camera / delete Lane xxxxx.jpg gave out, how to make the album also cleared away the cache off
Reply:
Not allow the user to pull the card, you install a software, delete an album in Figure let you pull the card, you will collapse, haha
Reply:
Thought you said your application, some phone dcim / camera also has the following cache directory, or a directory similar thumbnails
Reply:
Figure sdcard should exist within the database, right, sdcard pull up a message is issued, the system will re-search sdcard the map, and then rebuild the database information, if you want to clear out maps, should be to operate the database through a provider, make clear action
Reply:
private static void scanPhoto (Context ctx, String imgFileName)
{
Intent mediaScanIntent = new Intent (Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
File file = new File (imgFileName);
Uri contentUri = Uri.fromFile (file);
mediaScanIntent.setData (contentUri);
ctx.sendBroadcast (mediaScanIntent);
}
No comments:
Post a Comment