Search code examples
androidalarmmanagerandroid-alarms

What components are required for an alarm app in Android?


Is the main class JobScheduler? Most things i've read about JobScheduler are about setting up jobs in the future, but those jobs they talk about are like for wifi downloads or something. Would this be the same case for an alarm clock app?

What classes / components do I need to build an alarm clock android app?


Solution

  • I think you should use

    android.provider.AlarmClock
    

    It requeres permission

    com.android.alarm.permission.SET_ALARM
    

    Take a look at this answer:

    How to set Alarm using alarm clock class