Re: [android-developers] Alarm Issue
My alarm is working. Thanks :) On Sat, Mar 12, 2011 at 11:19 AM, TreKing treking...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:44 PM, Brad Stintson geek.bin...@gmail.comwrote: Here are the sample values. So what? That doesn't tell us much more. Try setting the timer to the current system time + 1000 (1 second) and see if your broadcast gets triggered. If not, you got bigger problems. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Alarm Issue
On Thu, Mar 10, 2011 at 12:27 PM, Brad Stintson geek.bin...@gmail.comwrote: I am using following code for setting alarm at specified time but I'm not able to receive alarm at specified time. Please tell me where is the problem Use your debugger and logcat to verify the value of all the variables you have there that we don't know the values of. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Alarm Issue
Here are the sample values. Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(System.currentTimeMillis()); cal.clear(); cal.set(Calendar.YEAR, 2011); cal.set(Calendar.MONTH,2); cal.set(Calendar.DAY_OF_MONTH,11); cal.set(Calendar.HOUR,11); cal.set(Calendar.MINUTE,17); cal.set(Calendar.SECOND, 30); cal.set(Calendar.MILLISECOND, 1000); On Sat, Mar 12, 2011 at 5:17 AM, TreKing treking...@gmail.com wrote: On Thu, Mar 10, 2011 at 12:27 PM, Brad Stintson geek.bin...@gmail.comwrote: I am using following code for setting alarm at specified time but I'm not able to receive alarm at specified time. Please tell me where is the problem Use your debugger and logcat to verify the value of all the variables you have there that we don't know the values of. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Alarm Issue
On Fri, Mar 11, 2011 at 11:44 PM, Brad Stintson geek.bin...@gmail.comwrote: Here are the sample values. So what? That doesn't tell us much more. Try setting the timer to the current system time + 1000 (1 second) and see if your broadcast gets triggered. If not, you got bigger problems. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Alarm Issue
Hii, I am using following code for setting alarm at specified time but I'm not able to receive alarm at specified time. Please tell me where is the problem Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(System.currentTimeMillis()); cal.clear(); cal.set(Calendar.YEAR, mYear); cal.set(Calendar.MONTH, mMonth); cal.set(Calendar.DAY_OF_MONTH, mDay); cal.set(Calendar.HOUR, mHour); cal.set(Calendar.MINUTE,mMinutes); Intent activate = new Intent(this, TimeAlarm.class); PendingIntent alarmIntent = PendingIntent.getBroadcast(this, 0, activate, 0); alarms = (AlarmManager)getSystemService(Context.ALARM_SERVICE); alarms.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), alarmIntent); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Alarm Issue
On 10 March 2011 19:27, Brad Stintson geek.bin...@gmail.com wrote: cal.setTimeInMillis(System.currentTimeMillis()); cal.clear(); These two does not make much sense in that order. -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Alarm Issue
I tried that but still it is not working. On Fri, Mar 11, 2011 at 12:04 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 10 March 2011 19:27, Brad Stintson geek.bin...@gmail.com wrote: cal.setTimeInMillis(System.currentTimeMillis()); cal.clear(); These two does not make much sense in that order. -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Alarm issue.
Hi, all I want to know how many alarms can be set in one application? what is the length for every interval time that I can set? I need many alarms and at least 1 month interval time in my application. it is possible? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---