Re: [android-developers] keep alive xmpp connection

2010-10-22 Thread Kostya Vasilyev
If this is some kind of instant messaging application, then keeping a WakeLock for a long time is probably not a good idea. Your users might like messages being delivered instantly, but dismayed that it only lasts a few hours. You might want to schedule a wake-up alarm with AlarmManager, acqui

Re: [android-developers] keep alive xmpp connection

2010-10-22 Thread Mark Murphy
On Fri, Oct 22, 2010 at 8:12 AM, Jey wrote: >               is there any way to keep my connection alive when the > screen goes off ? my xmpp connection is disconnected due to > ACTION_SCREEN_OFF event, If you are on WiFi, you would need to hold a WifiLock and probably a WakeLock. -- Mark Murph

[android-developers] keep alive xmpp connection

2010-10-22 Thread Jey
Hi all, is there any way to keep my connection alive when the screen goes off ? my xmpp connection is disconnected due to ACTION_SCREEN_OFF event, Regards, Jey -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th