Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - setting alarm

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

Hi,

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
Niju
Freshman
Freshman
 
Posts: 5
Joined: Thu Mar 17, 2011 6:47 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 12 guests