Android Question How can I use phone default file explorer in activity

JNG

Member
Licensed User
Hi

I wanted to use use phone default file explorer in my activity to select files. how can I do it.

regards
jng
 

DonManfred

Expert
Licensed User
Longtime User
You can´t.

You need to do it by yourself.

See this for ex.
 
  • Like
Reactions: JNG
Upvote 0

JNG

Member
Licensed User
Hi

I have seen the suggested example. It can solve the purpose. Need clarification :

Is it worth calling HTML/web page to do this job or not.


regards
jng
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Using a webview does make it more compilcated as you need to use Javascript and a Javascript-Interface in the B4A Webview.
Additionally you can not scan for files with javascript. JS need to send a command to B4A and B4A need to scan the folder and return the files in it. The JS must get the result to show...
 
Upvote 0

JNG

Member
Licensed User
Thanks for the quick response.

Basically i wanted to select the file or multiple files and store these files on the remote server.
normally I can do with the file explorer class.
to use the feature of os file explorer can I do like this using webview extra library.

php/Webpage(here I can use os default file explorer) select the file/files and upload the selected one at remote server and from there send it back to B4A.

regards
jng
 
Last edited:
Upvote 0
Top