Android notifications don't work if set to next day -


i've made program, uses broadcastreceiver create alarm (which activated after several days).

when time comes, supposed play notification.

i've tried setting time few minutes, hours , notification plays.

however in real life testing when time on 1 day notification doesn't work.

is there limit broadcast receivers can set in future?

here code: [http://pastebin.com/jnxvextk]

let's today sunday 5:00. if set alarm @ sunday 7:09 - ring.

but if set alarm wednesday @ 3:00 - won't work.

and cannot set emulator such long period.

i've been trying program on tablet , there notification fails show if alarm set ring after few days.

fallow 2 steps , schedule task

1.create date object  date dateobj=new date(year-1900,month,day,hour,min);      year - scheduling year month-scheduling month(0-11) day-scheduling day (1-30) hour scheduling hour (24 hrs format )(0-24) min scheduling min 0-59   2. set alarm dateobj.gettime() returns milli seconds   alarmmanager.set(alarmmanager.rtc_wakeup, dateobj.gettime(), pendingintent); 

Comments

Popular posts from this blog

shader - OpenGL Shadow Map -

stringtemplate - StringTemplate4 if conditional with length -