Dear all,
for various reasons I would like to simulate a keyevent. I know the right Keycode and I read how to do it over adb. But now I want to do it from within an application. However, I couldn't find a "native" way, so I thought, why not doing it by calling the shell.
So in Activity_Create I execute:
However, the app just freezes.
What is the proper way to send keyevents (not to respond to a keypress but to simulate a keyevent?`
Many thanks in advance,
Jondroid
for various reasons I would like to simulate a keyevent. I know the right Keycode and I read how to do it over adb. But now I want to do it from within an application. However, I couldn't find a "native" way, so I thought, why not doing it by calling the shell.
So in Activity_Create I execute:
B4X:
Dim p As Phone
p.Shell("input",Array As String("keyevent", "25"),Null,Null)
However, the app just freezes.
What is the proper way to send keyevents (not to respond to a keypress but to simulate a keyevent?`
Many thanks in advance,
Jondroid