Set a Notification at a specific Time

maxtacchetti

New member
Jun 18, 2013
1
0
0
Visit site
Hello to all,
I have a particular need for the App you would like to accomplish.

How do I schedule a notification to a specific time set by the user?

Of course, the notification shall come out even if the user has never not started the app from when he turned on the phone (The notification is a reminder for some action to be performed, and the user needs to be updated even if that day is not opened the App).

I know that I have to use the AlarmManager class, but I do not understand what is the best method.
What are the tools to use (Service, BroadcastReceiver)?
For now I managed to do a service, but I doubt that it can suck too much battery ... And 'the case of using a service only to wait for it to arrive at a certain time?
What is the best method?
Do you have any example to suggest me?

Thank you, Massimiliano
 

Members online

Trending Posts

Forum statistics

Threads
943,195
Messages
6,917,737
Members
3,158,870
Latest member
RandyRoyalty