Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@navczydev
Created September 2, 2021 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navczydev/ab934d6beb515d45fe36cc7b3f6a6ec2 to your computer and use it in GitHub Desktop.
Save navczydev/ab934d6beb515d45fe36cc7b3f6a6ec2 to your computer and use it in GitHub Desktop.
val alarmManager: AlarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
// check if our app can set exact alarms
if(alarmManager.canScheduleExactAlarms()){
Log.d("MainActivity", "onCreate: SCHEDULE ALARM")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment