Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want my app to list/display only the phone's photos ( nothing else ) so that the user could select one of them whose bitmap will then be dealt later on by my remaining code.

The problem is that the code below instead of displaying photos directly, it first displays TWO FOLDERS ( Photos and Camera ) where photos are stored/grouped and waits for selection. How to bypass folders display/selection and go straight to photos display/selection ? Here is the current code:


What I have tried:

Java
Intent intent = new Intent(Intent.ACTION_PICK,
        android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("image/*");
startActivityForResult(intent,0);
Posted
Comments
Richard MacCutchan 20-Oct-18 4:38am    
You probably need to write your own activity code to select images, rather than using the system version.
tedhill13 21-Oct-18 22:10pm    
Is there an already available code for that?
David Crow 22-Oct-18 13:46pm    
What if you removed the call to setType()?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900