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 intent.hasExtra("a") is always false. why? does this 
not work for pending intents? How can I pass a a value between the two?
public void onStart( Intent intent, int startId )
{ 
Log.i(TAG,"onStart()");
 Log.i(TAG,"%%%%%%%%%%%%%%EXTRA: "+intent.hasExtra("a")); 

Thanks for any help.

-- 
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