Android Question Opening Gallery to a specific directory (not specific file)

newSteve

Member
Licensed User
Longtime User
Hi,

I'm writing an app that takes a photo and writes it to a directory on the storage card (which is created if it doesn't exist). What I want to do after that is open the gallery to that directory, or even to that file, but so that you can also browse that directory. I am unable to do that, though. Additionally, though all the files are .jpg in the directory, the gallery doesn't seem to pick it up like it does my photos and a bunch of other apps, so I can't get to the files, except through a file manager (if anyone knows why this is the case, that would be very helpful).

Does anyone know how to do this? FYI: I CAN open the gallery to the specific file thanks to a post on this forum, but I can't browse from there to other files in the directory.
 

newSteve

Member
Licensed User
Longtime User
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
Try to pass the folder uri to the intent:
B4X:
"file://" & folder
Hello,
I have a folder located at file.DirRootExternal called "Selfie Light". The path is "/storage/emulated/o/Selfie Light". How to get that folder's URI, in order open specific this folder and not a single file.
Thank you for your time.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
This is an old thread. You should start a new Thread for your Question
 
Upvote 0
Top