Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alarm Manager and Notification in android

All, I have some doubt in basics .kindly help me to resolve it. in which scenario we will use Alarm manager and in which scenario we will use Notification.

Here is my understandings-Alarm-General Wakeup alarm Notification-used to notify new events...

If the above thing is correct please help me where the REMINDER will falls.

like image 898
Sivakumar Purushothaman Avatar asked Jul 01 '13 12:07

Sivakumar Purushothaman


1 Answers

Alarm manager is not a user notification system but an event for the phone to wake up and do something at a certain time.

Notifications are what you would use to notify the user of an event.

You can wire this all together using a BroadcastReceiver to capture the alarm manager events and start a notification.

Here's a simple example of how to do it.

like image 84
CodeChimp Avatar answered Sep 18 '22 15:09

CodeChimp