I have a strange problem:
I wrote a service that connects to internet host via Socket=new Socket("hostname",port) every 5 minutes to update status.
Everything works fine, but when I push hangup button to blank the screen, the connection is not made. But all failed connections are realized when I wake up the phone.
Problem occurs only for mobile network connection, everything works fine via wifi. Also, everything works fine while screen is blank and the phone is connected to computer via usb. It seems like threads are started every 5 minutes and stall on "new Socket(...)", but when I wake up the screen, threads continue to work.
Does anybody have any idea what can be wrong?