阅读背景:

我的客户端服务器应用程序运行在eclipse模拟器中,而不是在真正的android手机中

来源:互联网 

I wrote a client server program ,that my client is android and my server is python, in the client side I input data in edittext and when press a button ,data is sent to server via internet and in server data save to my SQLite database.my server and mobile device are attach to a modem through WIFI so I used the local IP to my program and I used socket for transfer data via internet. My problem is this, my application work correctly in emulator when the server and emulator are in the same computer but when I run my android application in a real device it can't connect to the server, my application run but when I press button my application is stop and exit. thanks for your help. I'm sure my python server is correct I tested it with telnet and there isn't any problem in connection between client and server.I think my client side program have a problem.I wrote a client server program ,that my client




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: