Android Question Get any file type using content chooser

shashkiranr

Active Member
Licensed User
Hi All,

I would like to know how to get a file of any type(random file) using content chooser.

OR

how to open the file managers installed in the phone to get the file path.

Regards,
SK
 

shashkiranr

Active Member
Licensed User
Hi NJDude,

I searched the forums. I also used content chooser to open the file managers in my phone but i get a message No such application exist. im using the below code

B4X:
        CC.Initialize("CC")
        CC.Show("file/*","Choose File")
Regards,
SK
 

NJDude

Expert
Licensed User
You mentioned "random file" (not sure what you mean by that) but you can also do this:
B4X:
CC.Show("*/*","Choose File")
 

shashkiranr

Active Member
Licensed User
I tried that. It opens up google drive. I do not get any option to choose other files. random file can be a .dat file for random access files.
 

NJDude

Expert
Licensed User
Content chooser will work with registered mime types, otherwise, you will get an error or not the expected results.
 
Top