Android Manifest File

All Android application must have an AndroidManifest.XML file which is called Android Manifest File. It presents essential information about an application to the system. It is also known as the configuration file. It contains,

  • Package name which is unique application ID.
  • Describes the components like activities, services, broadcast receivers, content providers.
  • Determines components are hosted by which processes.
  • Declares permissions.
  • Declares the minimum android API.
  • It lists the libraries that the application must be linked against.

Structure of AndroidManifest.xml

 

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 

    package="com.codeisall.demo" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
        android:minSdkVersion="8" 
        android:targetSdkVersion="15" /> 

    <application 
        android:icon="@drawable/logo" 
        android:label="@string/app_name" 
        android:theme="@style/AppTheme" > 

        <activity 
            android:name=".MainActivity" 
            android:label="@string/title_activity_main" >
 
            <intent-filter> 
                <action android:name="android.intent.action.MAIN" /> 
                <category android:name="android.intent.category.LAUNCHER" /> 
            </intent-filter> 

        </activity> 
    </application> 
</manifest>

What is your reaction?

0
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
Carolyn Jenner

You may also like

Comments are closed.