As the others have said, use the AlarmManager. A couple of other things which may be of use to you if your process takes a long time
Use the PowerManager to get and aquire a WakeLock - this will stop the phone from going to sleep whilst you're doing stuff. Use the WifiManager to get and aquire a WifiLock - this will keep the wireless connected whilst you're doing stuff. Don't forget to release the WakeLock and WifiLock when you're done. On Dec 14, 5:54 pm, ChisterNordvik <[email protected]> wrote: > Hi! > > I have a service polling data at regular time intervals and this works > great except when the phone goes into standby. Then the service never > runs the timer thread and it never receives data. How does the SMS/ > Email application do this since I get those notifications while in > standby? > > When I did a Windows Mobile application this was just the same, and I > had to resort to a third party timer (SDF) to solve this.... > > -Christer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

