On Tue, Jul 27, 2010 at 2:53 AM, Bhavya Siddappa <[email protected]> wrote:
> Hi All,
>
> I have written a service & a broadcast listener
>
> I want people using intent to invoke my services, should have appropriate
> permission.
>
> How do I go abt enforcing security/ permission to my services.
>
> Not very sure how “android:permission” works.

Step #1: Add a <permission> element to your <manifest>, describing the
permission you want others to hold.

Step #2: Add an android:permission attribute on your <service>, using
the name of the permission you used in step #1.

Step #3: Tell others they need a <uses-permission> element in their
manifest for the name you used in step #1.

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

_Android Programming Tutorials_ Version 2.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