On Fri, Jun 17, 2011 at 2:39 PM, Alan <[email protected]> wrote:
> Is there any way to discover which app package sent a broadcast?

I don't think so.

> If
> the sender includes their package name as an extra in the Intent, can
> you verify the sender is who they say they are?

Not really.

> Does anyone know of an Android API based way to verify the sender
> package?

Generally, you should use permissions. Add an android:permission
attribute on your <receiver> for a permission that the sender of the
broadcast must hold.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

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