Just recompiled a program in v7.00 and hit a problem with FileDialog
My code is:-
The message I get in the logs is below. It seems to happen at fd.show(
The program terminates so I don't get to explore much.
Exactly the same is happening on customer's tablets so its not just a problem with my sd card...
My code is:-
B4X:
Sub btn_FileList_Click
Dim fd As FileDialog
fd.FastScroll = True
fd.KeyboardPopUp = False
If File.IsDirectory(File.DirRootExternal, "Download") Then
fd.FilePath = File.DirRootExternal & "/Download/"
Else
Log("/Download/ is not a folder")
fd.FilePath = Starter.PathDrawings 'Change to Downloads
End If
fd.FileFilter = ".jpg,.bmp,.png,.JPG,.BMP,.PNG"
Dim ret As Int
ret = fd.Show("Choose a file to load:", "Okay", "Cancel", "", Null)
If ret = DialogResponse.CANCEL Or fd.ChosenName = "" Then
Return
Else If File.Exists(fd.filepath, fd.ChosenName) = False Then
Msgbox(fd.ChosenName & " does not exist.", "")
Else
'Restrict to 50 Characters
Dim myChosenName As String
If fd.ChosenName.Length > 54 Then
ToastMessageShow("Truncating Filename to 50 Characters",False)
myChosenName = Subs.Left(myChosenName,50) & "." & Subs.Right(myChosenName,3)
Else
myChosenName = fd.ChosenName
End If
The message I get in the logs is below. It seems to happen at fd.show(
The program terminates so I don't get to explore much.
Exactly the same is happening on customer's tablets so its not just a problem with my sd card...
B4X:
java.lang.NoSuchFieldError: No instance field Text of type Ljava/lang/String; in class Lanywheresoftware/b4a/objects/SimpleListAdapter$SingleLineData; or its superclasses (declaration of 'anywheresoftware.b4a.objects.SimpleListAdapter$SingleLineData' appears in /data/app/liteip.liteip3-2/base.apk)