The
manifest
tag can include nodes that define the application components,security settings, test classes,and requrements that make up your application. I described each and every tag what ever in the manifest file.uses-sdk:
This node enables you to display the Mininum and Maximum SDKversions that must be available on device for your application to function properly.It contains 3 attributes:
minSDKVersion
, maxSDKVersion
,targetSDKVersion
.<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.siddhu.helloworld" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.siddhu.helloworld.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest>
uses-configuration:
This
uses-configuration
node can used to specify the Input Mechanisms supported by your application.It contains 5 attributes those are:
reqFiveWayNav
reqHardkeyboard
reqKeyboardType
reqNavigation
reqTouchScreen
.Coming Soon...
uses-feature:
Android is available on a wide variety of hardware platforms.Use multiple
uses-feature
nodes to specify which hardware feature your application requires.You can support for any hardware that is optional ona compatible device.
Audio
Sensores
Camera
Bluetooth
Touchscreen
WI-Fi
. To access the above features you have to take permisson as below:<uses-feature android:name="android.hardware.nfc"/> //for NFC(Near Field Communication)
No comments:
Post a Comment