Library to port old alarm manager behaviour to new android versions.
Add following to your build.gradle:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.rzetzsche:alarmmanagercompat:0.1'
}
AlarmManagerCompat alarmManagerCompat = AlarmManagerCompat.getInstance(getApplicationContext());