You want to keep the socket open forever?
I wouldn't do that (battery drain, how you going to keep a socket open when 
the phone can get disconnected quite easily, etc) .Just open the socket when 
the client needs stuff.
And if you can use HTTP, use a keep-alive header let the http protocol 
'handle' the socket that needs to be kept alive as long as possible.

-- 
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