Setting up an Alarm system on android - android

Im developing an app with a feature by which people can set reminders for themselves for various events (like take medicine with dosage amount). The user should be able to
1) Set a time for the reminder
2) Set a date for the reminder and choose between recurring/ non-recurring
3) When the alarm gets triggered, a notification should be built for the user
4) Alarm should have a snooze option as well
I know how to use notification builder to add a notification with a pending intent and have read documentation on Alarm Manager but Im still completely lost with this task. Could someone please give me some guidance or help?

It seems that the following will supply sufficient documentation on interfacing with alarms in the android SDK.
https://developer.android.com/training/scheduling/alarms.html

Related

Give notifications on specific time

I created an app in which user can add events in calendar and I want to give user reminder about their event at specific time. Date and time is already specified in event. I want to set notifications for each event.
I searched about it on google and found about alarm Manager but I am confused on how milli second parameter works. Like I want set alarm for 7:30 PM but don't know how it can be done.
If a reminder is all you want to create, check this out How to Create a Reminder Notification in Android?
If what you are looking for is a whole app concept or rather a full tutorial on how to do this, please follow this guide -> Android Task Reminder App [Source Code Included]

Sending a push notification directly from the app

Not too experienced with mobile development, but I wanted to know if this was possible.
After the user installs the app (android or ios), the app should at least once a day "wake-up" and show a push notification to the user.
Is this possible?
If I understood you correctly, I believe that you need setup a recurring alarm using AlarmManager. You also need to setup starting alarm service on device reboot. You can write a method that does what you want so it get executed when the alarm runs e.g. show notification. The following links should help you:
Repeat Alarm Example In Android Using AlarmManager

How to start a notification at a specified time every day?

I am a new developer and don't know much about android programming. I am trying to make an app that reminds a user to do a particular thing every day at a specific time (like going to gym at 5:30 pm). I am able to get a notification after clicking of a button but i want this to be done by the app i.e. even if the app is not running it will remind me everyday to go the gym at 5:30. How can I get this???
I tried using AlarmManager but it gives my notification at that time only and sets the alarm for the specified time.
Set repeating alarm. on broadcast receiver start your notification

How to set alarm or push notification

I am trying to make a reminder application on Android. I have taken data from the user and saved in a database. How do I trigger an alarm or push notification on user entered date?
To create push notification, you have to register on console API. but I can't post link , because of low reputation and get your own key. Personally I used this tutorial to create and handle push notification.
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
but I can't understand why do you need it to alarm user.
To implement alarm after some elapsed time, you can create Service:
http://developer.android.com/reference/android/app/Service.html
There you can create your own alarm or use one of the standard. Sorry, I can't provide code example, because your question is too general.
Insert the information into the Calendar application with the appropriate settings and you will get an alarm when the event occurs.

Android: Calendar integration with custom notifications

I need to integrate, in my android application, a calendar from which i can set new event.
I know that is possible call the android calendar (using intent), but what I need is slightly different, for this reason:
I need that when the time of the event is reached, some code is started, and no default notification occurs! In other words I want create a custom notification when alarm of event goes off. Maybe I need to use AlarmManager
How can I solve this problem?
If your problem is that you need to launch some kind of intent at a specified time then you can use AlarmManager. It allows you to schedule your application to be run at some point. When an alarm goes off, the Intent that had been registered for it is broadcast by the system.
For More information about AlarmManager, you can check this link : AlarmManager

Categories

Resources