I tried again in several ways:
<permission android:name="android.permission.INTERNET"></permission> within 
the <manifest>: did not block binding to the service
elsewhere within the <service> tag: did not build.

Although looks strange, so an Android service can require from a 3rd party 
entity only a single permission?

any replies welcomed

cheers!


On Sunday, March 9, 2014 4:37:55 PM UTC+2, smoogli wrote:
>
> I created a Service which requires 3rd party entity to declare it uses a 
> permission. 
>         <service android:name="myservice" android:exported="true"  
> android:permission="android.permission.INTERNET" >
> that works.
>
> however, I cannot find how to require from the 3rd party entity, to 
> declare it uses multiple permissions.
> 1. cannot add <permission> within the <service> tag. getting error:
>      Parser exception for myservice\AndroidManifest.xml: Attribute 
> "permission" bound to namespace "
> http://schemas.android.com/apk/res/android"; was already specified for 
> element "service".
>      Error in an XML file: aborting build.
> 2. 
> http://developer.android.com/reference/android/R.styleable.html#AndroidManifestServicetalks
>  about a single permission per <service> tag
> 3. adding <permission android:name="android.permission.INTERNET" /> in the 
> <manifest> scope seems not to apply on enforcing permission when binding to 
> the service by the 3rd party entity
>
> any idea?
>
> thanks!
> --roy
>
> (still have the choice of using the 
> checkCallingPermission(String)<http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission%28java.lang.String%29>method
>  within my service. but would prefer to use the declarative option if 
> possible)
>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to