android - Thumbnail not found -


i'm using universal image loader display sd card images in grid,

i'm using below code.

this.imageurls = new arraylist<string>();          //int datacolumnindex = imagecursor.getcolumnindex(mediastore.images.media.data);         int image_column_index = imagecursor.getcolumnindex(mediastore.images.thumbnails._id);          (int = 0; < imagecursor.getcount(); i++) {             imagecursor.movetoposition(i);              cursor cursor = mediastore.images.thumbnails.queryminithumbnail(                     getcontentresolver(), long.valueof(imagecursor.getstring(image_column_index)),                     mediastore.images.thumbnails.mini_kind,                     null );              if( cursor != null && cursor.getcount() > 0 ) {                 cursor.movetofirst();//**edit**                 string uri = cursor.getstring(cursor.getcolumnindex(mediastore.images.thumbnails.data));                 imageurls.add(uri);             }          } 

its not loading thumbnails, when check android studio logs see similar exception multiple times

java.io.filenotfoundexception: /storage/emulated/0/dcim/.thumbnails/1445029040607.jpg: open failed: enoent (no such file or directory) 01 

where i'm going wrong?


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -