Android AlarmManager

By the help of Android AlarmManager in android, you can schedule your application to run at a specific time in the future. It works whether your phone is running or not.

The Android AlarmManager holds a CPU wake lock that provides guarantee not to sleep the phone until broadcast is handled.

Android AlarmManager Example

Code for “Create Alarm Manager in Android”. And Notification Manager with sound and vibration.

1)MainActivity

2)-OutPut.java

3)-Manifest.xml

Output:

Android AlarmManager

Facebook