Android Question Problem with FileDialog in version 6.80 Beta

Cebuvi

Active Member
Licensed User
Longtime User
Hello

I have started working with version 6.80 and with the FileDialog library when using the instruction:

B4X:
Dim fd As FileDialog
Dim ret As Object

ret = fd.Show("Máscara", "Ok", "Cancel", "",Null)

I get the following error:

** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_button1_click (java line: 408)
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/b4a.example-1/base.apk)
at anywheresoftware.b4a.agraham.dialogs.InputDialog$FileDialog.loadFileList(InputDialog.java:1786)
at anywheresoftware.b4a.agraham.dialogs.InputDialog$FileDialog.Show(InputDialog.java:1832)
at b4a.example.main._button1_click(main.java:408)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:163)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Using version 6.5 everything works perfectly.

Thanks.

César
 

Cebuvi

Active Member
Licensed User
Longtime User
Hello Erel,

Now no errors occur, but in FileDialog instead of arrows appears

I send you a screenshot.

error1.jpg


Thanks.

César
 
Last edited:
Upvote 0

brunnlechner

Member
Licensed User
Longtime User
Hello Erel,
I need a simple file open dialog.
In B4A 6.80 the file dialog v2.94 shows white fonts on white background.

upload_2017-3-15_8-54-12.png


In the old version I could correct this with: fd.GetSingleLineLayout.Label.TextColor=Colors.DarkGray

(android:style/Theme.Holo.Light.Panel)


Thanks
Franz
 
Upvote 0
Top