19.01.2011 10:07, Danny S. пишет:
Hi,I have a service that is running in background. It needs to send notifications to the user. In my application you can create data with date and time. The service now can fetch this data and give the user a notification t-x minutes before the saved time is reached ("remind for appointments"). Can I set a fix moment when the service should send the user a notification instead of listen/check all the time for (approximately) time identity?
See AlarmManager
And a secondary question: how can I set "Autostart" for the applications service?
See Intent.ACTION_BOOT_COMPLETED -- Kostya
Thanks a lot! -Danny S.
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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

