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();
calendar.setTimeInMillis(System.currentTimeMillis());
calendar.set(Calendar.HOUR_OF_DAY,8);
 alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
pendingIntent);

Thanks  you

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to