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#AndroidManifestService
 
talks 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 [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
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to