Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the path of a Gallery Folder in Android

I know how to programatically get a gallery image (one by one).

Now that the gallery is organised folderwise

Is there a way to select and get the path of a folder in the gallery view...

alt text

like image 969
Abhishek Susarla Avatar asked Dec 16 '10 08:12

Abhishek Susarla


1 Answers

With this method you can get the path of the Gallery of your device:

private static String getGalleryPath() {
        return photoDir = Environment.getExternalStorageDirectory() + "/" + Environment.DIRECTORY_DCIM + "/";   
    }
like image 192
Jorgesys Avatar answered Sep 18 '22 13:09

Jorgesys