What are "thumbnail" files?

Thumbnail/image cache files?

  • As part of providing better security and privacy for the application I'm writing, I am removing/deleting images and pictures found on my Android device. I am therefore curious to know if there are any cache/thumbnail files created by the OS, for example so that the Gallery app can display a quick preview before the full actual file is processed. If such files are created, then it would be in my interest to pay them some attention

  • Answer:

    yes for the images on the gallery there should be thumbnails files also. If some images have not the thumbnails files then Android OS automatically created those files. Using Media.URI you can use those thumbnails files. EDIT: this is the sample code, Cursor cursor = MediaStore.Images.Thumbnails.queryMiniThumbnail( getContentResolver(), selectedImageUri, MediaStore.Images.Thumbnails.MINI_KIND, null ); if( cursor != null && cursor.getCount() > 0 ) { cursor.moveToFirst(). String uri = cursor.getString( cursor.getColumnIndex( MediaStore.Images.Thumbnails.DATA ) ); }

Ian Low at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.