If I have done with the types shown below in the selection dialog a selection I always get an error message with the crash App.
What 's wrong?
Dim DL As MaterialDialog ' in Globals
Sub lboeffnen_Click
If manager.GetBoolean("vibrate") = True Then
mv.vibrateOnce(40)
End If
DL.Initialize("dl1")
DL.items(Array As String("1", "2", "3", "4"))
DL.title("Bitte auswählen!!")
DL.positiveText("OK")
DL.negativeText("Schliessen")
DL.itemsCallbackSingleChoice(0)
DL.show
End Sub
Sub dl1_onSingleChoiceSelect(v As View, index As Int, text As String)
lboeffnenText = text
End Sub
Error from the Log
LogCat connected to: HT3AATP00659
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Activity (frmstartseite) Pause, UserClosed = false **
** Activity (frmauswahl) Create, isFirst = true **
** Activity (frmauswahl) Resume **
lib: NOTFOUND 'dl1_onshow
lib: NOTFOUND 'dl1_onpositive
lib:Raising.. dl1_onsinglechoiceselect()
lib: NOTFOUND 'dl1_onany
java.lang.Exception: Sub dl1_onsinglechoiceselect signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171)
at anywheresoftware.b4a.BA$2.run(BA.java:328)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:5751)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
at dalvik.system.NativeStart.main(Native Method)