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
解决方案
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.