[android-developers] Re: persistent socket connection

2008-10-21 Thread Miguel Paraz
On Oct 9, 3:25 am, j <[EMAIL PROTECTED]> wrote: > Thanks for the reply but polling is not an option in my case because > my server will be sending extremely time sensitive messages.  Even if > it arrives 5 seconds late, it's useless. I hope Android has a solution to compete against the BlackBerry

[android-developers] Re: persistent socket connection

2008-10-08 Thread Breno T. Minzon
Switching Towers does not drop the connection. What will drop is changing phone's IP or handoff... regards 2008/10/8 Josh Roesslein <[EMAIL PROTECTED]> > I think you should be fine with a persistent connection. It might affect > the battery life a bit, but if you need live data then its really y

[android-developers] Re: persistent socket connection

2008-10-08 Thread Josh Roesslein
I think you should be fine with a persistent connection. It might affect the battery life a bit, but if you need live data then its really your only option. Only issue you might have is the connection getting dropped due to signal lose or maybe when the phone switches cells (not sure if the network

[android-developers] Re: persistent socket connection

2008-10-08 Thread jay
You could try running a server socket on the phone. The server would connect to the phone's port when it has something to send down and then tear it down. If TCP is too heavy handed for this, you could try using UDP (DatagramSocket) If T-Mobile has a NAT like router/firewall between the phone and

[android-developers] Re: persistent socket connection

2008-10-08 Thread j
Thanks for the reply but polling is not an option in my case because my server will be sending extremely time sensitive messages. Even if it arrives 5 seconds late, it's useless. On Oct 8, 12:09 pm, Randolpho <[EMAIL PROTECTED]> wrote: > "institution some sort of polling mechanism"? > > Sometime

[android-developers] Re: persistent socket connection

2008-10-08 Thread Randolpho
"institution some sort of polling mechanism"? Sometimes I think a monkey randomly beating on a keyboard would have better grammar than me. On Oct 8, 2:07 pm, Randolpho <[EMAIL PROTECTED]> wrote: > I can think of a dozen, and not one of them are related to battery > life at all. > > A persistent

[android-developers] Re: persistent socket connection

2008-10-08 Thread Randolpho
I can think of a dozen, and not one of them are related to battery life at all. A persistent connection, generally speaking, isn't a good idea. In some cases it can be a valid solution, but most of the time, you're better off institution some sort of polling mechanism. I suggest a web service th