Android Scheduled Notifications -
i'm building app , need schedule notification remember user access app. need notification shown month ahead of last time app used
alarmmanager
has access system alarm services. of alarmmanager can schedule execution of code in future. alarmmanager object can’t instantiate directly can retrieved calling context.getsystemservice(context.alarm_service)
. alarmmanager registered intent
. when alarm goes off, intent has been registered alarmmanager, broadcasted system automatically. intent starts target application if not running. recommended use alarmmanager when want application code run @ specific time, if application not running.
there example.
Comments
Post a Comment