java - Android can't show SD card photos in gallery -
i want show both images located in sd card "dcim" folder , in phone memory folder of same name.
i manage phone image directory using:
environment.getexternalstoragepublicdirectory(environment.directory_dcim);
but can't seem find way access image folder located in sd well·
any ideas?
thanks attention. jose
below code getting files sdcard. can photos that:
file allfiles=new file("/sdcard"); // can /sdcard0 or /sdcard1 file[] list=allfiles.listfiles(); for(int i=0;i<list.length;i++) { log.e("hidden path files.."+list[i].getabsolutepath()); }
you can specify folder name followed "/sdcard" getting photos or files.
Comments
Post a Comment