alarm never triggers , as it should do android -


i trying start alarm starts broacast , starts service

the alarm never starts . don't know problem , tries several attempts sove , no success

mainactivity.java

calendar=calendar.getinstance(); day=calendar.get(calendar.day_of_month); month=(calendar.get(calendar.month)+1);  // manupulation ,to compare non-array int year=calendar.get(calendar.year);   cloader=new cursorloader(this, birthdayprovider.content_uri, null, birthdayprovider.event_date+"='"+day+"' , "+birthdayprovider.event_month+"='"+month+"'", null, null); c=cloader.loadinbackground();  // if there exist on today  if (c.movetofirst()) {  calendar.set(calendar.month,(month-1) ); // making original array , becomes current month  calendar.set(calendar.year, year); calendar.set(calendar.day_of_month, day);  calendar.set(calendar.hour_of_day,11); calendar.set(calendar.minute, 37); calendar.set(calendar.second,0);  intent myintent = new intent(getbasecontext(), myreceiver.class);                   pendingintent = pendingintent.getbroadcast(mainactivity.this, 0, myintent,pendingintent.flag_one_shot);                               alarmmanager alarmmanager = (alarmmanager)getsystemservice(alarm_service);                   alarmmanager.set(alarmmanager.rtc_wakeup, calendar.gettimeinmillis(), pendingintent);  } 


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -