setting alarm

Put your problem here if it does not fit any of the other categories.

setting alarm

Postby Niju » Sat Apr 02, 2011 8:51 pm


i am facing issues for setting alarm through android code.
I gone through most of the documents on net about alarmmanager and how to use it but nothing worked.

please find the code am using ,is it the right way for setting alarm .
for eg: i am setting it for 8 AM morning .but its not working i am strugling on it for 3 hrs.
i am testing it on emulator(emulator time 7.50am).
the alarm is not starting at 8 am its just satrting at the apllication lauch time itself without waiting 10mnts
Calendar calendar = new GregorianCalendar(); or // Calendar calendar = new Calendar();
alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);

Thanks you
Posts: 5
Joined: Thu Mar 17, 2011 6:47 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 8 guests