Use setPackage() on the Intent, though I think this only showed up
with Android 2.2.

On Thu, Jun 16, 2011 at 11:57 AM, Alan <[email protected]> wrote:
> Hi,
>
> Is it possible to have broadcasts that are only sent within an APK?  I
> know that I can secure a broadcast using a custom permission string
> that I declare in the manifest.  However, I do not want the user to
> have to approve a random permission just for internal usage.  Also, I
> definitely don't want other APKs to have access to the broadcasts by
> using that permission.  The broadcasts will have very sensitive data
> in them.
>
> The only idea I have to get around this issue is to emulate broadcasts
> using service Intents and an observer pattern.  Any other ideas?
>
> Best,
> Alan
>
>
> --
> 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
>



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