java - setng alarm using AlarmManager.ELAPSED_REALTIME_WAKEUP -


i want alarm service broadcast intent every 1 hr.

i using rtc_wakeup follows:

alarmmanager.setrepeating(alarmmanager.rtc_wakeup, alarmshedulehelper                 .getimmediatenexthour().gettimeinmillis(),                 alarmmanager.interval_hour, pendingintent); 

now want using elapsed_realtime_wakeup .how can it?

alarmmanager.setrepeating(alarmmanager.elapsed_realtime_wakeup, elapsed_time_real_of_starting_hr, alarmmanager.interval_hour, pendingintent); 

how elapsed_time_real_of_starting_hr ie elapsedrealtime correspoding starting hr?

there no elapsed_time_real_of_starting_hr flag in android system, , have specify start time of alarm in place of flag in alarmmanager.setrepeating() method


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -