Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread Satya Komatineni
Also here are some previous notes I have collected on pending intents Quick intro to pending intents: http://www.satyakomatineni.com/item/3301 How alarmmanager and pending intents interact http://www.satyakomatineni.com/item/3503 At this later link there is a lot of discussion on how pending int

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread Satya Komatineni
There is enough material on this forum if you search with 'pending intent' especially around its uniqueness criteria. At a high level, pending intents are references to already stored intents. A pending intent uses the input intent as a key to locate previously established pending intent for this

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread TreKing
On Tue, May 10, 2011 at 11:40 AM, Boozel wrote: > however in the service intent.hasExtra("a") is always false. why? does this > not work for pending intents? How can I pass a a value between the two? Try this: http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_UPDATE_CUR

[android-developers] putExtra not working for a pending intent

2011-05-10 Thread Boozel
Hi i have a widget which runs a service when pressed using the code below Intent intent = new Intent(context, SignalSpotWidgetService.class); intent.putExtra("a", 9); PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0); however in the service int