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 - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -