Moving mouse pointer on Android screen programmatically

I would like to control that mouse from Java on the Tablet.

This is not possible, except via firmware or specialized instrumentation code. Ordinary SDK applications cannot inject input events this way.


It is possible to control the mouse pointer in Android programmatically via the AccessibilityService API.

Here is an example app in the play store: EVA Facial Mouse app

Here is a github repository for controlling the mouse pointer via WiFi (API level 21): chetbox/android-mouse-cursor

I have forked and updated the latter repo to API level 27: Ra-Na/android-mouse-cursor