javaandroidandroid-galleryandroid-photosandroid-intent-chooser

Java android pick a photo from gallery for a folder


I don't know how I can pick a photo from gallery from one folder :

Now I have this :

   private void galleryIntent() {
        Intent intent = new Intent();
        intent.setType("image/*");
        intent.setAction(Intent.ACTION_GET_CONTENT);//
        startActivityForResult(Intent.createChooser(intent, "Select File"), SELECT_FILE);
}

But now I can choose a photo from all gallery and I wanto to pick a photo from a folder Test


Solution

  • Integrate some sort of picker into your own app, such as perhaps one of these file/directory chooser libraries, and remove ACTION_GET_CONTENT.