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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -