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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -