A project started crashing after being compiled with 6.8. I traces it to the filedialog.show function.
I wrote a short program that confirmed that it was fd at issue.
The traceback is below:
Logger connected to: LGE VS980 4G
main_crashme_click (B4A line: 46)
ret=fd.show("Pick a file to load","OK","Cancel","
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-2/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._crashme_click(main.java:422)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
at anywheresoftware.b4a.BA$1.run(BA.java:303)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5351)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
The calling line read:
ret=fd.show("Pick a file to load","OK","Cancel","",Null)
If I go back to V6.3 it compiles and runs as expected.
Thanks for any ideas.
b
I wrote a short program that confirmed that it was fd at issue.
The traceback is below:
Logger connected to: LGE VS980 4G
main_crashme_click (B4A line: 46)
ret=fd.show("Pick a file to load","OK","Cancel","
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-2/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._crashme_click(main.java:422)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
at anywheresoftware.b4a.BA$1.run(BA.java:303)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5351)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
The calling line read:
ret=fd.show("Pick a file to load","OK","Cancel","",Null)
If I go back to V6.3 it compiles and runs as expected.
Thanks for any ideas.
b