移动鼠标指针的Android屏幕上编程 [英] Moving mouse pointer on Android screen programatically
问题描述
我开发一个Android应用程序,我想移动的鼠标指针/光标在Android平板电脑。我知道这是可能的,因为当我一个鼠标(USB或BT)连接到Android平板(蜂窝+),光标出现,我可以用平板电脑只使用鼠标进行交互。我想,以控制鼠标从Java上的平板电脑。
我已经有一个可以沟通的平板电脑和可流指针坐标,它的第二设备。
而且没有我不能使用蓝牙。我使用的第二个器件具备WiFi,但没有能力推动蓝牙。
我的想法是,必须有一种方法来移动鼠标指针。
谢谢,
凯文
我想,以控制鼠标从Java上的平板电脑。
这是不可能的,除非通过固件或专用仪器仪表code。普通的SDK应用程序不能注入输入事件这种方式。
I am developing an Android application where I would like to move the "mouse" pointer/cursor on an Android tablet. I know this is possible because when I connect a mouse (USB or BT) to an Android tablet (Honeycomb+), a cursor appears and I can interact with the tablet using the mouse only. I would like to control that mouse from Java on the Tablet.
I already have a second device that can communicate the tablet and which can stream pointer coordinates to it.
And no I can't use bluetooth. The second device that I'm using has WiFi but no ability to drive BlueTooth.
My thought is that there must be a way to move the mouse pointer.
Thanks,
Kevin
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.
这篇关于移动鼠标指针的Android屏幕上编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!