Blocking on a Socket read operation while in sleep mode

by Omer Gilad » Tue, 29 Dec 2009 06:11:02 GMT


Sponsored Links
 I have code that runs in the background and holds a connected Socket
and it's InputStream.
It calls read() infinitely until something is received, then continues
to parse. Socket timeout is 0 of course.

I am interested in what would happen when the device goes to sleep? Is
the CPU off? Will this socket be responsive in this case (Say, my
server sends some notification)?

Thanks

--



Blocking on a Socket read operation while in sleep mode

by Raj » Wed, 20 Jan 2010 02:06:36 GMT


 Yes, the CPU is OFF when the device goes to sleep. The socket is non-
responsive at this time.
Hope that helpps.



> Thanks


Sponsored Links


Other Threads

1. Text getting cut-off in a list view

I have a list of text views in my screen. The text in one of the list item
gets cut-off on the right side. There is no padding attached in the layout
and there are no over-lapping layouts. But when i focus that particular list
item the text view is re-drawn and re-positioned to give me uncut text. This
happens inconsistently.

Is this an existing issue with the framework??

Thanks
Gyan

--~--~---------~--~----~------------~-------~--~----~

2. Low Memory: No more background

Hi,

I am working on openGles with seven images displayed on the screen. I
am translating the position of these seven images on a button click
so
it is drawing every time it seems.
But, after sometime all the images are getting disappeared then I've
checked in the logcat
I found this :ActivityManager(52): Low Memory: No more background
processes.

I heard animating bitmaps via OpenGL may give similar problems.

Any suggestions would be appreciated.


Thanks,
Bala



--~--~---------~--~----~------------~-------~--~----~

3. Andriod Development

4. Launch Activity

5. book page animation

6. java.net.UnknownHostException

7. How to draw directly on screen without calling invalidate?