Re: [android-developers] BroadcastReceiver, Intent objects

2010-05-02 Thread Anurag Singh
Yeah, there's no fucntion available in intent class. But you can putExtra
putExtrahttp://developer.android.com/reference/android/content/Intent.html#putExtra%28java.lang.String,%20long%29
(String http://developer.android.com/reference/java/lang/String.html name,
long value) to
recongnize any known scenario. On the other end use getExtra to get the same
value.

There are so many similar function described in intent class, you can try
according to your need.

- Anurag Singh

On Sun, May 2, 2010 at 11:28 AM, Sean Sullivan s...@seansullivan.comwrote:


 I've implemented a BroadcastReceiver class to receive Intent objects.

 In my BroadcastReceiver class, I'd like to be able to identify the
 source (sender) of the Intent object.  Is there an API that enables me
 to do this?

 I've already read through the javadocs and the Android platform source
 code but didn't find an answer.

 Thank in advance.

 Sean

 --
 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.comandroid-developers%2bunsubscr...@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] BroadcastReceiver, Intent objects

2010-05-01 Thread Sean Sullivan

I've implemented a BroadcastReceiver class to receive Intent objects.

In my BroadcastReceiver class, I'd like to be able to identify the
source (sender) of the Intent object.  Is there an API that enables me
to do this?

I've already read through the javadocs and the Android platform source
code but didn't find an answer.

Thank in advance.

Sean

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