Notification in Android - android

what do you prefer for making a notification on specific date and time... in this documentation I can't find where to define date and time...
However is there any other way to handle this notifications?

Check the AlarmManager class it can help you scheduling events.

Related

SERVICE FOR NOTIFICATIONS

Can anyone tell me how to do a service that will generate a notification every day at a certain time (for example at noon)?
Or rather, do I need a service to do this?
Naturally I am talking about Android programming
In Android, You can implement with options:
AlarmManager
Schedule job
Server schedule job
Or something other options,...

How to call a service to notify when certain time has arrived in android?

I am working on an application that sends some dates and times to service and I need the service to do a notification message when that those times and dates have arrived.thank you all in advance.
I hope that this topic will help You:
Using Alarmmanager to start a service at specific time
All You need to do is schedule an AlarmManager to a specific date, and then build a notification with a BroadcastReciever

Schedule multiple notifications at fixed date and time?

I have to display some notifications from my app on fixed date and time which is selected by the user which are sort of reminder.
It can be done using the ALARMMANAGER by android. I am not able to find any example or code to set the alarm on the desired date.
Or if I can add and remove an event to the calendar.
Any help please.
You need to implement service that will be responsible for the scheduling
Schedule Notification after some time
the link above shows you how to do that along with that you can use Timer Class of Android.description of which is here Timer Android

Which approach to use to make a daily notification?

I want my app to do is: Once a day check if the user have written a note, If not, add a notification to the statusbar, reminding the user to start the app, and write a note.
Can I use the alarm-manager or do I have to use a Service for this? Do anyone know where to find a good tutorial on this, or have some example code ?
Use AlarmManager. Permanently running a Service just for scheduling a regular task would be an overkill.
Have a look at this question, for example: AlarmManager Android Every Day

Determining a time period

I want to make something in a specific time period. For instance, I'll show a message in my application from 6pm to 8pm everyday. I'll do it in a service. Which code should I use and could you please give a sample? Thanks in advance...
I would look into using Android Notifications along with AlarmManager to handle the repeating.
Particularly setRepeating in AlarmManager to call the service and creating the actual Notification in the onReceive of your service.
You should use an AlarmManager
http://developer.android.com/reference/android/app/AlarmManager.html
you can find tons of examples online

Categories

Resources