Every project in Android includes AndroidManifest.xml, file which is stored in the root directory of its project hierarchy. The manifest file is an important part of our application because it defines the structure and metadata of our application, its components, and its requirements.
This file includes nodes for each of the Activities, Services, Content Providers and Broadcast Receiver that make the application and it also includes Intent Filters and Permissions, which determines how activities co-ordinate with each other and other applications.
The manifest file also specifies the application metadata, which includes its icon, version number, themes etc.
A manifest node looks like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pkg.myapp"
android:versionCode="1"
android:versionName="0.9 Beta">
[....manifest nodes....]
</manifest>
uses-sdk– It is used to define a minimum and maximum SDK version that must be available on a device so that our application function properly, and target SDK for which it has been designed .
No comments:
Post a Comment