I am making an application that requires me to list all the images available on the phone’s SD card.
I tried to request the ContentResolver method, i.e.
Cursor image = getContentResolver().query(Images.Media.EXTERNAL_CONTENT_URI, new String[]{Images.Media._ID,Images.Media.DATA,Images.Media.DISPLAY_NAME}, null, null, null);
but without any results. Is there a way I can get the list, or if this is not possible, is there any possible intention (like PICK) with which I can let the user select the file and then access the path to the file that the user selected ?
Helppppp guys ...
source
share