What is AndroidManifest.XML? well the answer to this question is given below.
It performs some other tasks also:
- It is dependable to ensure the application to get to any secured parts by giving the authorizations.
- It likewise proclaims the android programming interface that the application will utilize.
- It records the instrumentation classes. The instrumentation classes give profiling and different information. This information’s are taken out not long before the application is distributed and so on
- This is the required XML document for all the android applications and is situated inside the root registry.
What does manifest file look like.
<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
package=”com.javatpoint.hello”
android:versionCode=”1″
android:versionName=”1.0″ >
<uses-sdk
android:minSdkVersion=”8″
android:targetSdkVersion=”15″ />
<application
android:icon=”@drawable/ic_launcher”
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>
Elements of the AndroidManifest.xml file
These are the elements of Android Manifest.xml
<manifest>
manifest is the root component of the AndroidManifest.xml document. It has a bundle property that depicts the bundle name of the action class.
<application>
application is the sub-element of the show. It incorporates the namespace assertion. This component contains a few sub-elements that announce the application segment, for example, action and so forth
The regularly utilized characteristics are of this component are a symbol, mark, subject, and so forth
android:icon speaks to the symbol for all the android application parts.
android:label functions as the default name for all the application parts.
android:theme speaks to a typical subject for all the android exercises.
<activity>
action is the sub-element of use and speaks to a movement that must be characterized in the AndroidManifest.xml document. It has numerous traits, for example, name, name, subject, launch mode, and so forth
android:label speaks to a name for example shown on the screen.
android: the name speaks to a name for the action class. It is a required characteristic.
<intent-filter>
aim channel is the sub-component of action that depicts the sort of aim to which action, administration, or broadcast recipient can react to.
<action>
It adds an activity for the planned channel. The purpose channel must-have in any event one activity component.
<category>
It adds a class name to a purpose channel.