java - Android Alarm Manager isn't working on proper time -


i using alarmmanager scheduling task. problem is, it's not working should do. like, want set time show toast message ]. if set, show after 5,10 or 20 minutes. works fine. but, if set after 1 hour show toast message.sometimes, works , not.maximum times,it failed.it showed message right after hit set button. unable figure out problem.here code

intent myintent = new intent(setschedule.this,schedulereceiver.class); larmmanager alarmmanager = (alarmmanager) getsystemservice(alarm_service); alarmmanager.set(alarmmanager.rtc_wakeup, calendar.gettimeinmillis(), pendingintent.getbroadcas(setschedule.this, 1, myintent,pendingintent.flag_update_current)); 

so, how can solve problem ?


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -