Move the mouse on the Android screen programmatically

I am developing an Android application in which I want to move the mouse pointer / cursor on an Android tablet. I know that this is possible because when I connect the mouse (USB or BT) to the Android tablet (Honeycomb +), a cursor appears and I can only interact with the tablet with the mouse. I would like to control this mouse with Java on a tablet.
I already have a second device that can communicate with the tablet and which can transfer the coordinates of the pointer to it.
And no, I canโ€™t use Bluetooth. The second device I use has WiFi, but cannot control BlueTooth. I think there should be a way to move the mouse pointer.

+7
source share
1 answer

I would like to control this mouse from Java on a tablet.

This is not possible, with the exception of firmware or a special toolkit code. Regular SDK applications cannot input input events this way.

+6
source

Source: https://habr.com/ru/post/898881/


All Articles