Sample AndroidManifest.xml File

Posted on July 7, 2011
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
    <uses-sdk android:minSdkVersion="7" />

    <uses-permission android:name="android.permission.CAMERA"></uses-permission>

    <application android:label="@string/app_name" android:description="@string/app_desc"
    	android:icon="@drawable/quizicon" android:debuggable="true">
        <activity android:name=".QuizSplashActivity"
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
        <activity android:name="QuizMenuActivity"></activity>
        <activity android:name="QuizHelpActivity"></activity>
        <activity android:name="QuizScoresActivity"></activity>
        <activity android:name="QuizSettingsActivity"></activity>
        <activity android:name="QuizGameActivity"></activity>

        <activity android:name="About"
        	android:theme="@android:style/Theme.Dialog" />
        <activity android:name="Prefs"
        	android:label="@string/settings_title" />
        <activity android:name="Game"
        	android:label="@string/game_title" />
        <activity android:name="Keypad"
        	android:label="@string/keypad_title" />


Categories: Android Code Snippets

4 Responses

  1. mrMAGIK3805:

    Hi Blaine,

    Thanks for the great sample of the AndroidManifest.xml file above.

    Question? I have created a separate android class lib (I am coding C# in Monodevelop for Android) namespace which contains 2 classes one for extending the public class BPMonitorDatabase : SQLiteOpenHelper and another for creating the table for the database namespace
    public class BPMDailyReadingsTB
    I have added the as a reference in my contentprovider namespace
    [ContentProvider(new string[] { “” })]
    public class BLMonitorDBContentProvider : ContentProvider
    I have also added a providers element to the AndroidManifest.xml file in my client app. I want to be able use this provider to get a cursor of data in one of my activity modules, but the code does not show the provider.

    Can you shed any lite on what I am doing wrong?

    I can be reached at sev001 [at] sdevinc [dot] com or Skype: mrMAGIK3805


    14.06.2012 14:21 Reply

  2. Subista:

    in the line no.8 what is the code in it? plz explain it…

    07.11.2015 20:31 Reply

    • theBlaine:

      Line number 8 gives the app permission to access the camera. I added as an example.

      29.05.2016 21:02 Reply

  3. Subista:

    plz write full code in the program of manifest

    07.11.2015 21:19 Reply

Leave a Reply

Switch to our desktop site