On Wed, Aug 24, 2011 at 2:38 PM, lbendlin <[email protected]> wrote:

> there is no perceptible difference between the energy required to establish
> a connection and the energy required to maintain a connection. Plus, most
> devices are "always connected" anyhow.


Where do you get this from?  Keeping a network socket open can be pretty
light-weight -- on Android devices the CPU is still allowed to go to sleep,
and the radio processor will wake up the application processor when there is
data available on the socket.

Creating the initial connection can be quite expensive, especially if you
are using SSL (which we all should be trying to do these days, right?).

On the other hand, keeping a persistent socket open is expensive in other
ways, since that means your application code needs to be kept always running
during that time, not allowing its RAM to be used by other things.

-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to