ContentChooser returns always Dir as empty string.
(or, at least, in SQLiteViewer:
B4X:
Sub mnuExternal_Click
cc.Show("*/*", "Choose database file")
End Sub
Sub ContentChooser_Result (Success As Boolean, Dir As String, FileName As String)
If Success Then
LoadDatabase(Dir, FileName)
End If
End Sub
SQLiteViewer works because FileName contains also the full path, not only the file name)