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.