>
> Intent myIntent = new Intent(this, TimerService.class); Bundle bundle = new 
> Bundle();
> bundle.putString("extraData", "FIRST_ALARM");
> myIntent.putExtras(bundle);     PendingIntent AmPendingIntent = 
> PendingIntent.getService(this, 0, myIntent, 0);
>  AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
> am.setRepeating(AlarmManager.RTC_WAKEUP, Time2fire, fONCE_PER_DAY, 
> AmPendingIntent);
>
> Change the above code to this:

Intent myIntent = new Intent(this, TimerService.class);
*myIntent.putExtra("extraData", "FIRST_ALARM");*
PendingIntent AmPendingIntent = PendingIntent.getService(this, 0, myIntent, 0);
 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
am.setRepeating(AlarmManager.RTC_WAKEUP, Time2fire, fONCE_PER_DAY,
AmPendingIntent);

And then it will work...  The problem is that you are putting a bundle
extra into your intent but then you are trying to get a string extra out of
the intent.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, May 10, 2012 at 11:07 PM, Tim Mensch <[email protected]> wrote:

> On 5/10/2012 1:57 PM, FirmwareEngineer wrote:
> ... lots of questions about code...
>
> This is the "discuss" list; it's mostly for casual discussion and not code
> questions. Please check out the list descriptions to see where your
> question would be more appropriate (I don't know off the top of my head).
>  You might also try Stack Overflow.
>
> Tim
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Discuss" group.
> To post to this group, send email to 
> android-discuss@googlegroups.**com<[email protected]>
> .
> To unsubscribe from this group, send email to android-discuss+unsubscribe@
> **googlegroups.com <android-discuss%[email protected]>.
> For more options, visit this group at http://groups.google.com/**
> group/android-discuss?hl=en<http://groups.google.com/group/android-discuss?hl=en>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" 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-discuss?hl=en.

Reply via email to