If what you are looking for is to install some sort of client on the PC that can communicate with an Android app then there are a bunch of existing software packages such as what RemoteDroid offers. You can checkout the source code at http://code.google.com/p/remotedroid/source/checkout.
If the question is about only sending message from device to server then you can use http / tcp. If your server is in VPN then you may need take care of that. If you are looking for other way also (server to device) you can use cloud to device messaging.
发布评论
评论(2)
如果您正在寻找的是在 PC 上安装某种可以与 Android 应用程序通信的客户端,那么有很多现有的软件包,例如 RemoteDroid 提供。您可以在 http://code.google.com/p/remotedroid/ 查看源代码来源/结帐。
If what you are looking for is to install some sort of client on the PC that can communicate with an Android app then there are a bunch of existing software packages such as what RemoteDroid offers. You can checkout the source code at http://code.google.com/p/remotedroid/source/checkout.
如果问题只是关于从设备向服务器发送消息,那么您可以使用 http / tcp。如果您的服务器位于 VPN 中,那么您可能需要注意这一点。如果您也在寻找其他方式(服务器到设备),您可以使用云到设备消息传递。
If the question is about only sending message from device to server then you can use http / tcp. If your server is in VPN then you may need take care of that. If you are looking for other way also (server to device) you can use cloud to device messaging.