FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
AlarmManager + Notification Guide - Precise Scheduling in Android
How-ToTools

AlarmManager + Notification Guide - Precise Scheduling in Android

via Dev.to TutorialmyougaTheAxo1mo ago

AlarmManager + Notification Guide setExactAndAllowWhileIdle val alarmManager = context . getSystemService < AlarmManager >() val intent = Intent ( context , AlarmReceiver :: class . java ) val pendingIntent = PendingIntent . getBroadcast ( context , 0 , intent , PendingIntent . FLAG_UPDATE_CURRENT or PendingIntent . FLAG_IMMUTABLE ) alarmManager ?. setExactAndAllowWhileIdle ( AlarmManager . RTC_WAKEUP , System . currentTimeMillis () + 60000 , pendingIntent ) BroadcastReceiver Notification class AlarmReceiver : BroadcastReceiver () { override fun onReceive ( context : Context , intent : Intent ) { val notification = NotificationCompat . Builder ( context , "CHANNEL_ID" ) . setContentTitle ( "Alarm!" ) . setSmallIcon ( R . drawable . ic_alarm ) . build () NotificationManagerCompat . from ( context ) . notify ( 1 , notification ) } } BOOT_COMPLETED Restore class BootReceiver : BroadcastReceiver () { override fun onReceive ( context : Context , intent : Intent ) { if ( intent . action == I

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
16 views

Related Articles

Here are our favorite spring cleaning deals from Amazon’s Big Spring Sale
How-To

Here are our favorite spring cleaning deals from Amazon’s Big Spring Sale

The Verge • 1d ago

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward
How-To

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward

TechCrunch • 1d ago

Build Days That Actually Mean Something
How-To

Build Days That Actually Mean Something

Medium Programming • 1d ago

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.
How-To

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.

Dev.to Beginners • 1d ago

The origin story of Apple’s long-running relationship with FoxConn
How-To

The origin story of Apple’s long-running relationship with FoxConn

The Verge • 1d ago

Discover More Articles