Plug in to Mono for Android for Lights, Camera and Video Apps: Listing 1

Setting the permissions in an AndroidManifest.xml file.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="graphics.graphics" 
android:versionCode="1" android:versionName="1.0" 
  android:installLocation="internalOnly">
  <application android:label="Graphics">
  </application>
  <uses-sdk android:minSdkVersion="7" />
  <uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-feature android:name="android.hardware.camera" />
</manifest>

About the Author

Wallace (Wally) B. McClure has authored books on iPhone programming with Mono/Monotouch, Android programming with Mono for Android, application architecture, ADO.NET, SQL Server and AJAX. He's a Microsoft MVP, an ASPInsider and a partner at Scalable Development Inc. He maintains a blog, and can be followed on Twitter.