[android-developers] Writing a Date/Time Service

2010-12-31 Thread asinha
I am trying to write a service which runs as background process and invoke my task (in application) at 9am everyday. My service is: public class DateService extends Service { //expressed in milliseconds private final long ONCE_PER_DAY = 1000 * 60 * 60 * 24; private final

Re: [android-developers] Writing a Date/Time Service

2010-12-31 Thread TreKing
On Fri, Dec 31, 2010 at 7:35 AM, asinha asinha.vocoll...@gmail.com wrote: Is this the right way to write my service? No. Use AlarmManager. How would I verify my service? Test it? - TreKing

Re: [android-developers] Writing a Date/Time Service

2010-12-31 Thread Kostya Vasilyev
31.12.2010 16:35, asinha пишет: I am trying to write a service which runs as background process and invoke my task (in application) at 9am everyday. My service is: [snip] Is this the right way to write my service? How would I verify my service? This is error-prone, since a service can get