Android手机和python服务器的建议之间的连接 [英] Connection between Android phone and python server suggestion

查看:280
本文介绍了Android手机和python服务器的建议之间的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么可以连接与Android手机的PC服务器code蟒蛇,让我能够再和接收服务器与Android手机之间的数据?但摆在考虑插座不能在移动Android开放,尽管它​​在模拟器上打开,并连接

how can i connect a server code python on PC with android mobile so that i be able to then and receive data between the server and the android mobile ?? but put in consider that the socket can not be open on the mobile android despite its open on the emulator and connect

推荐答案

如果你希望你的Andr​​oid应用程序时,事情发生在服务器上接收更新,有你有看的 C2DM ?一个关于这个伟大的事情是,所有的Andr​​oid应用程序共享相同的C2DM连接,因此它是电池的使用很轻。

If you want your Android application to receive updates when things happen on the server, have you had a look at C2DM? One of the great things about this is that all Android applications share the same C2DM connection, so it is very light on battery usage.

这篇关于Android手机和python服务器的建议之间的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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