Android Question Trying to execute "input tap" with no success

mmanso

Active Member
Licensed User
Longtime User
Hi there,

I'm trying to "tap" on a button from a B4A application and I'm using this code:

B4X:
    Dim p As Phone
    Dim Response, Error As StringBuilder
    Response.Initialize
    Error.Initialize
    p.Shell("input tap 140 744", Null, Response, Error)

When I run it, the android pointer is positioned on the correct place (I've it activated the ponter debug on the developer options) but the "input tap" command "hangs" for a while, exists after and nothing happens (the button don't get tapped).

I've executed the command through adb:

B4X:
adb shell input tap 140 744

And it works ok...

Anyone had this issue before?

Thanks.
 
Top