Start a background process that is running as a service and handles
all server side communications. You want that anyway, because server
calls are typically pretty long. Executing long calls from the UI
thread is not a good idea... your UI will freeze and eventually cause
Android to call the DNR box ("Application X does not respond wait/
close).
In this background process, you can also check whether the mobile
device is even on a network; don't call the server if you aren't. If
you really trick it out, check back once you are - that way you can
call the server when the device is in a poor RF/low capacity
environment. Example: The device can pull server updates in a tunnel
with spotty coverage whenever the device happens to see some
"daylight". This makes for a very robust way of pulling data from a
server and can't be done with a server push approach, in an efficient
way, anyways.On Jul 20, 2:35 pm, Zac Tolley <[email protected]> wrote: > I am thinking of creating an application that would benefit from the > ability to register with application server and then at a later point > have a notification message sent to the phone and wakeup the app. > > Rather than run the application on the handset all the time with a > constant connection to my server, and the battery drain that that > would entail, I wondered if Android allowed applications to register > with some form of notification server a and then be woken up only when > its needed... Think instant messenger app without the need to run the > instant messenger all the time. > > iPhone has introduced something like this, does Android support it or > is it feasible to develop something that would somehow use binary SMS > notifications to launch the app and pass it some info? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Discuss" 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-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
