No network access when screen is blank

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

No network access when screen is blank

Postby marcingib » Tue Jan 26, 2010 1:45 am

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?
marcingib
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jan 26, 2010 1:27 am
Location: Poland

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests