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
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
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
3 matches
Mail list logo