Let's say I have an app that logs your route and lets you see it and post it online...
When the phone boots, it should run for a fraction of a second, putting your location in a database, and maybe every 15-20 minutes after that (don't want to bother other apps too much!), whether the app is launched or not.
Do I just use a service that starts at boot time, and have its thread sleep for 20 minutes, work for 1 second, and repeat? Or is there some clever scheduler I missed? Either way, what's a good example for getting started?
Note: I don't think the rest of the app (the activity component) needs to communicate with the service directly, since it can just read the data from the database.



