Android Question Get photo from gallery directory.


Active Member
Licensed User
What is the easiest way in B4A to get a photo from the picture gallery (the folder where the photos you take with your hand are inside)?
to download into your own App folder for a background image?
Does anyone have a code snippet?


Licensed User
You need to use the ContentResolver library to query Results from Androids ContentProvider.
Does anyone have a code snippet?
No, you need to search the forum if you find something.
You need to learn to work with the ContentResolver. You probably find information about the content url in Googles Documentation.

This applies if you want to retrieve Results without userintervention.

Alternatively you can use ContentChooser to let the deviceuser select a Photo.