如何在没有路由的Android设备上强制触摸事件 [英] How can I force touch events on none routed Android devices

查看:162
本文介绍了如何在没有路由的Android设备上强制触摸事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个可以在手机上以编程方式生成触摸事件的应用程序。

I would like to write an application which can programatically generate touch events on the phone.

我已经尝试过这种方法:

I have already tried this methods:


  • adb:adb swipe等...它需要USB线并将手机连接到电脑

  • adb ON TCPIP:相同
    我对adb的问题是需要用户进行如此多的预设,我不想让用户学习它。我已经创建了一个使用adb的应用程序,但用户很难正确设置:(

  • adb : adb swipe and so on... It requires USB cable and connect the phone to pc
  • adb ON TCPIP: same My problem with adb is to require so much presetting by user and I don't want to make the user to learn it. I have already made an application which use adb, but it's difficult for the user to set up properly :(

我听说过,我试图签署我的申请有平台标志,但它对我不好,因为我想在Android市场上发布我的应用程序而且它不是系统应用程序......

I have heard and I tried to sign my application with platform sign, but it's not good for me, because I would like to publish my app on android market and it is not a system application...

我想找到一种在单个应用程序中实现此功能的方法,该应用程序可以在应用程序之外(从后台)产生触摸,我想在市场上发布。

I would like to find a way to achieve this in a single application which can produce touch outside of the app (from background) and I would like to publish on market.

我找到了这个应用程序: https://play.google.com/store/apps/details?id=com.teamviewer.quicksupport.samsung 基本上可以这样做。因为当我点击我的电脑时,它会发送一条消息电话和手机触摸屏幕。团队观察员如何以及有什么特权呢?

I have found this application: https://play.google.com/store/apps/details?id=com.teamviewer.quicksupport.samsung which can basically do this. Because when I click on my computer, it send a message to the phone and the phone make the touch on the screen. How and with what privileges can teamviewer do it?

请给我一个som关于它的建议。

Please give me some advice about it.

推荐答案


我想找到一种方法来实现这一点应用程序可以在应用程序之外产生触摸(从后台),我想在市场上发布。

I would like to find a way to achieve this in a single application which can produce touch outside of the app (from background) and I would like to publish on market.

这是不可能的,在可访问性服务可以完成的小输入伪装之外。

This is not possible, outside of what little input faking can be done by an accessibility service.


teamviewer如何以及具有哪些特权呢?

How and with what privileges can teamviewer do it?

如果您阅读Play商店列表,您会发现它只适用于三星设备。这是因为TeamViewer的制造商与三星达成协议以实现这种集成。同样,TeamViewer团队与其他一些设备制造商达成了协议。但是,他们没有与所有制造商合作,因此TeamViewer无法在所有设备上运行。

If your read that Play Store listing, you will notice that it only works with Samsung devices. That is because the makers of TeamViewer struck a deal with Samsung to enable this sort of integration. Similarly, the TeamViewer team struck deals with a few other device manufacturers. However, they did not do so with all manufacturers, and so TeamViewer does not work on all devices.

这篇关于如何在没有路由的Android设备上强制触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆