Hi,
i have a label wich gives a haptic-feedback on "click". After that i have called this sub (label_Click) also by the _EnterPressed-event from a textbox. My problem is, that
inside the label_Click raises an error.
I´m sure it is because a missing sender - but how can i transfer a "correct" sender...
Thanks!
Matze
Edit: the name of the label is working - don´t know why it´s not working in the first test - maybe i forgot to restart the app...
i have a label wich gives a haptic-feedback on "click". After that i have called this sub (label_Click) also by the _EnterPressed-event from a textbox. My problem is, that
B4X:
XUIViewsUtils.PerformHapticFeedback(Sender)
B4X:
HapticFeedback failed
(Exception) java.lang.Exception: java.lang.RuntimeException: Object should first be initialized (B4XView).
Error occurred on line: 24 (XUIViewsUtils)
java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
at sx.datacollector.xuiviewsutils._performhapticfeedback(xuiviewsutils.java:39)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at sx.datacollector.evaluateanimal._btnsearch_click(evaluateanimal.java:884)
at sx.datacollector.evaluateanimal._searchbox_enterpressed(evaluateanimal.java:2418)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.EditTextWrapper$2.onEditorAction(EditTextWrapper.java:107)
at android.widget.TextView.onEditorAction(TextView.java:6265)
at com.android.internal.widget.EditableInputConnection.performEditorAction(EditableInputConnection.java:138)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:360)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:85)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Thanks!
Matze
Edit: the name of the label is working - don´t know why it´s not working in the first test - maybe i forgot to restart the app...
Last edited: