package Ġcom . ans or od . simple alarm . util Ċ Ċ import Ġandroid . app . Alarm Manager Ċ import Ġandroid . app . Pending Intent Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġcom . ans or od . simple alarm . receiver . Alarm Broadcast Receiver Ċ Ċ object ĠAlarm Helper Ġ{ ĊĊĠĠĠ Ġfun Ġschedule RTC ( context : ĠContext , Ġmessage : ĠString , Ġfuture Time : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= ĠIntent ( context , ĠAlarm Broadcast Receiver :: class . java ) ĊĠĠĠĠĠĠĠ Ġintent . putExtra ( Alarm Broadcast Receiver . EXTRA _ MESSAGE , Ġmessage ) ĊĊĠĠĠĠĠĠĠ Ġval Ġpending Intent Ġ= ĠPending Intent . get Broadcast ( context , Ġ 1 , Ġintent , ĠPending Intent . FLAG _ ONE _ SHOT ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmanager Ġ= Ġcontext . getSystem Service ( Context . ALARM _ SERVICE ) Ġas ĠAlarm Manager ĊĠĠĠĠĠĠĠ Ġmanager . set Exact ( Alarm Manager . RTC _ WAKE UP , Ġfuture Time , Ġpending Intent ) ĊĊĠĠĠĠĠĠĠ ĠSharedPreferences Helper . store Alarm ( context , Ġfuture Time , Ġmessage ) ĊĠĠĠ Ġ} Ċ }