I wanted to create a small example, but the MLMenu causes problems at the code:
mnu.Initialize(1, 40dip, Activity, Me, Colors.DarkGray, Colors.White, 18, "mnu")
mnu.AddMenuItem("1", Null)
Logger connected to: LENOVO LIFETAB_P970X
--------- beginning of main
Copying updated assets files (1)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NoSuchMethodError: No virtual method AddSingleLine(Ljava/lang/String
V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/testLWMenu.wedersoft.de-1/base.apk)
at org.mlsoftMLmenu.mlmenu._refillmenu(mlmenu.java:382)
at org.mlsoftMLmenu.mlmenu._addmenuitem(mlmenu.java:74)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:755)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:345)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
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:5204)
at android.view.View$PerformClick.run(View.java:21170)
at android.os.Handler.handleCallback(Handler.java:743)
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:772)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:662)
An error occurred:
(Line: 47) mnu.AddMenuItem("2", Null)
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
My version: B4A V 6.80
My original app was created under V 4 (or older ???)