[android-developers] Re: Blocking on a Socket read operation

2010-01-30 Thread YuHao
How can I solve this problem? A great need everyone's help, thank you. On Jan 29, 2:55 am, YuHao wrote: > Hi All: >        Android emulator is available as a socket server and socket > server as a service at background, when service start, I open a thread > to start listening, when use client to

[android-developers] Re: Blocking on a Socket read operation while in sleep mode

2010-01-19 Thread Raj
Yes, the CPU is OFF when the device goes to sleep. The socket is non- responsive at this time. Hope that helpps. On Dec 28 2009, 8:52 pm, Omer Gilad wrote: > I have code that runs in the background and holds a connected Socket > and it's InputStream. > It calls read() infinitely until something i