Hello, I want to retrieve Thumbnails of all images stored in SD CARD. i have wrote following code but some how it is only retrieving thumbnails of only three images. Even if i captured new image it do not come there. The following is the code. can some one tell me what are the wrong thing i am doing ?
Uri sdcardImage = MediaStore.Images.Thumbnails.getContentUri("external"); Cursor c=getContentResolver().query(sdcardImage , null, null, null, null); c.moveToFirst(); for(int i=0;i<c.getCount();i++){ //int columnIndex = c.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); int columnIndex = c.getColumnIndexOrThrow(MediaStore.Images.Thumbnails.DATA); String imagePath = c.getString(columnIndex); path[i]=imagePath; Log.e("imagePath=",imagePath); c.moveToNext(); } so can some one tell me what is lacking in my code ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en