I need change hint programmatically in class NumPad
[customview] - Numpad
For this purpose, sub was added to the class
Numpad2.Hint = "MyHint" - the only addition in example from Erel work in Debug and Release but in Release (obfuscated) error
real devices, Android 4.4 & 7.0, b4A ver 6.80
[customview] - Numpad
For this purpose, sub was added to the class
B4X:
Public Sub setHint(s As String)
If flEditText1.IsInitialized = False Then
CallSubDelayed2(Me, "setHint", s)
Return
End If
flEditText1.Hint = s
End Sub
Numpad2.Hint = "MyHint" - the only addition in example from Erel work in Debug and Release but in Release (obfuscated) error
B4X:
java.lang.Exception: Sub sethint was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:185)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:996)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6272)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
--------- beginning of crash
Last edited: