Hi Debuti, You might want to have a look at the code I wrote for NetSentry (http://code.google.com/p/netsentry/source/browse/trunk/src/com/ googlecode/netsentry/backend/scheduler/CronScheduler.java). I had the exact same problem and I wrote a scheduler myself. I copied the class for the cron expressions (CronExpression) from the OpenSymphony Quartz project (http://www.opensymphony.com/quartz/). As far as I know, there's no way you can start the initial scheduling without user interaction, so you have to wait until the user opens an activity of your application for the first time. That's why I wrote a class that bootstraps the whole thing (Bootstrapper). This class I either call when the user opens NetSentry for the first time or when the phone reboots (look at the android.intent.action.BOOT_COMPLETED intent). Hope this helps.
Cheers, Lorenz On Aug 27, 12:18 pm, debuti <[email protected]> wrote: > Is there a way to set up a cron like task to do some background stuff? > That would be awesome, anyway, if there isnt, is there someway to > initialize a program at boottime (that schedules itself)? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

