On Aug 9, 2012, at 8:36 AM, drstrange <andrewrud...@gmail.com> wrote: > I can't seem to find any info on how to specify more than one permission for > a service. The service will need both INTERNET and LOCATION permissions, but > the ServiceAttribute seems to only allow one:
Don't confuse the Service permissions with the Application permissions. Application permissions, set via the [assembly:UserPermission] custom attribute or via the Project Options dialog, apply to all activities/services/etc. located within the application. For example, if any of your application components requires internet access, you need to (somehow) have the following in your AndroidManifest.xml: <uses-permission android:name="android.permission.INTERNET" /> The ServiceAttribute.Permission property controls what permissions the service's _caller_ must have: http://developer.android.com/guide/topics/manifest/service-element.html#prmsn > The name of a permission that that an entity must have in order to launch the > service or bind to it. Note the singular "a". For example, if you have the Android SDK samples installed, you can view the CubeLiveWallpaper/AndroidManifest.xml file: > <service > android:label="@string/wallpaper_cube1" > android:name=".cube1.CubeWallpaper1" > android:permission="android.permission.BIND_WALLPAPER"> > <intent-filter> > <action > android:name="android.service.wallpaper.WallpaperService" /> > </intent-filter> > <meta-data android:name="android.service.wallpaper" > android:resource="@xml/cube1" /> > </service> Note that the //service/@andorid:permission contains a single value. None of the Android SDK samples have an //@android:permission attribute with more than one value. Also note that the ServiceAttribute.Permission property and/or the //service/@android:permission attribute value need to be fully qualified; ACCESS_FINE_LOCATION is insufficient. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid