我可以运行于Android PC主机,当通过USB debug模式连接在一个.exe? [英] Can I run an .exe on the host PC from Android, when connected via USB on debug mode?

查看:134
本文介绍了我可以运行于Android PC主机,当通过USB debug模式连接在一个.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个检查URL信息的机器人服务。它已经工作正常。我运行它调试(开发)模式,我能够通过亚行壳将命令发送到Android系统。



现在,我想知道是否有可能在另一个方向发送命令:从机器人到PC。我可以调用一个.exe或类似的东西?

I have an android service that checks an url for information. It already works fine. I'm running it on debug (development) mode, and I'm able to send commands to Android by the "adb shell".

Now, I wanted to know if it is possible to send commands on the other direction: From android to PC. Can I call an .exe, or something like that?

先谢谢了。

推荐答案

作为评论由克里斯·斯特拉顿,我结束了创建一个TCP端口的计算机监听器,要求当火灾中的.exe程序。然后,在Android上,我使得发送TCP调用。

As commented by Chris Stratton, I ended up creating a PC listener for a TCP port, that fires the .exe program when requested. Then, on Android, I'm making the sending the TCP call.

这篇关于我可以运行于Android PC主机,当通过USB debug模式连接在一个.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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