Krzysztof Pokrywka Krzysztof Pokrywka - 4 years ago 119
Android Question

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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download