B4X:
Dim oFileDialog As FileDialog
Dim sFileName As String=""
If oFileDialog.Show("Select an AG Research CSV","Select","","Close",Null)=-1 Then
sFileName=oFileDialog.ChosenName
If sFileName<>"" Then
LoadData(sFileName)
Else
Msgbox("Error loading data", "No File was selected")
HideKeyboard
End If
End If
[code]