Android Question ContentChooser proper mime

Robert Valentino

Well-Known Member
Licensed User
Longtime User
When I use the below code with contentchooser to try and pick pdf files it displays pdf's and db's
B4X:
PickFile.Show("application/pdf/*", "Pick a file to import")

when I use the following to pick a db, again I get pdf's and db's
B4X:
PickFile.Show("application/vnd.sqlite3/*", "Pick a Database")

I've tried a bunch of different SQLite mime types and all result in the same (PDFs being shown with DBs).

Is there a different mime to only show PDFs and only show DBs in the contentchooser list?
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
OK, partly solved - the below works for PDFs - tried sames with SQLite3 but then nothing shows
B4X:
PickFile.Show("application/pdf", "Pick a file to import")                '  Removed ending /*

B4X:
PickFile.Show("application/vnd.sqlite3", "Pick a Database")            '  Removed ending /*       <- NOW shows nothing
 
Upvote 0
Top