Sample AndroidManifest.xml File

Posted on July 7, 2011
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.sample.someapp"
      android:versionCode="1"
      android:versionName="1.0">
    <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"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <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:label="@string/about_title"
        	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" />

    </application>
</manifest>

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 com.twfCentLLC.android.BPMonitor.database which contains 2 classes one for extending the public class BPMonitorDatabase : SQLiteOpenHelper and another for creating the table for the database namespace com.twfCentLLC.android.BPMonitor.database
    {
    public class BPMDailyReadingsTB
    {
    I have added the com.twfCentLLC.android.BPMonitor.database.dll as a reference in my contentprovider namespace com.twfCentLLC.android.BPMonitor.contentprovider
    {
    [ContentProvider(new string[] { “com.twfCentLLC.android.BLMonitorDBContentProvider” })]
    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

    TIA
    Ed

    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