Android Question Open a specific gallery folder

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello,
I would like to know how to open a specific gallery folder in order to see photos in there. I use this code, but this code opens whole gallery.
Thank you for your time.

B4X:
Sub btnGallery_Click
 
    Dim i As Intent

    i.Initialize(i.ACTION_VIEW,  "")
    i.SetType("image/*")
         
    StartActivity(i)

End Sub

Edit:
As i see only this one works. Can someone help me implement this in my b4a code?
http://stackoverflow.com/questions/6074270/built-in-gallery-in-specific-folder/8255674#8255674
 
Last edited:

yiankos1

Well-Known Member
Licensed User
Longtime User
Based on the comments it doesn't work on newer versions of Android. There is no public API or intent that opens a specific folder.

You can find the images yourself and show them internally.

Thank you for your answer. Do you mean something like a custom gallery?
 
Upvote 0
Top