Android Question FileDialog not showing bottom tabs

jai

Active Member
Licensed User
Longtime User
I am using FileDialog-
B4X:
fd.FilePath = File.DirInternal
fd.FileFilter = ".pmd"
Ret = fd.Show("Select File", "Load", "Cancel", "",Null)
It works fine as long as the file list is smaller than the screen. In such cases it lists file names and shows the Load and Cancel tabs at the bottom. But if the file list is longer it allows the scroll through the list but no tabs are shown at the end of the list. No way to select a file. I also tried it with Async and faced the same problem.
Any suggestions?
 

zed

Active Member
Licensed User
fd.FilePath = File.DirInternal
File.DirInternal can no longer be used

[B4X] Features that Erel recommends to avoid


use ContentChooser

B4X:
Dim cc As ContentChooser
cc.Initialize("cc")
cc.Show("audio/*", "Choose audio file") 'change mime type
Wait For CC_Result (Success As Boolean, Dir As String, FileName As String)
    
If Success Then
    'your code here
Else
    MsgboxAsync("open file error","")
End If
 
Upvote 0

jai

Active Member
Licensed User
Longtime User
Thanks zed but I need to understand what am I doing wrong with FD.Show for it to not show the botton tabs. I have several apps that need to be fixed for this issue. My problem is related to FD.Show more than the File.DirInternal which works ok. I get the same problem when I use a RunTimePermission.GetSafeDirDefaultExternal file path as well.

Any suggestions please.
 
Last edited:
Upvote 0
Top