开发者

trigger android hardware event from a service

开发者 https://www.devze.com 2023-01-25 05:25 出处:网络
Is it possible to trigger a hard开发者_高级运维ware event from a service? At the very least, I\'m hoping to emulate trackball movements and clicking events such that an active app will process them no

Is it possible to trigger a hard开发者_高级运维ware event from a service? At the very least, I'm hoping to emulate trackball movements and clicking events such that an active app will process them normally.

Many thanks.


I don' think so and certainly hope not. That would be a serious security issue.

If you are just testing with JUnit etc then this is possible with the instrumentation classes.

0

精彩评论

暂无评论...
验证码 换一张
取 消