Can you call a button click? I have tried the three below ways and one of them seem to work.
btnSaveSettings_Click
CallSub(Main,"btnSaveSettings_Click")
CallSub("","btnSaveSettings_Click")
You should be able to call the sub directly. Have you added an action handler for the IME ?
try this ...
B4X:
IME.Initialize("IME")
IME.AddHandleActionEvent(EditText1) 'your input view
Sub IME_HandleAction As Boolean
btnSaveSettings_Click
End Sub
Sub btnSaveSettings_Click
Log( "Button has been Clicked")
End sub
Here is what I have and it isn't working. It doesn't do anything after I click done on the keyboard. Well the keyboard closes and thats it.
B4X:
Sub SetKeyboard
IME.Initialize("IME")
DoEvents
IME.ShowKeyboard(edtGameName)
IME.AddHandleActionEvent(edtGameName)
End Sub
Sub IME_HandleAction As Boolean
btnSaveSettings_Click
End Sub
Your code works fine here .. All I can suggest is check the spelling of btnSaveSettings_Click
Maybe insert a Log call in IME_HandleAction sub to confirm its working ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.