1 / 7

Introducing the Application Manifest

Introducing the Application Manifest. Nasrullah khan. Each android project includes a manifest file, AndroidManifest.xml, stored in the root of the project hierarchy,the manifest file lets you define the structure and metadata of you application,its components and its requirements.

amadis
Download Presentation

Introducing the Application Manifest

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introducing the Application Manifest Nasrullah khan

  2. Each android project includes a manifest file,AndroidManifest.xml,stored in the root of the project hierarchy,the manifest file lets you define the structure and metadata of you application,its components and its requirements

  3. It includes nodes for each of the components(Activities,Services,Content Providers And Broadcast Receivers) that makes up the application,using Intent filters and permissions determine How they interact with each other/

  4. <manifest> node tags • <uses-sdk> • <uses-configuration> • <uses-features> • <supports-screens> • <application> • <uses-permissions> • <permissions> • <instrumentation>

  5. <uses-sdk> • This node lets you define a min,max,targetsdk version that must be availbale on a device in order for your application to function properly.the minimum SDK version specifies the lowest version of the SDK that include the APIs you have used in your application,your application will crash if it attempts to access the APIs that are not available on the host device. • The max SDK version lets you define an upper limit you are willing to support,your application will not be visible on the market for devices running a higer platform release.it is a good practice not to set the max SDK value unless you know your application will definitely not work on newer platform releases

  6. Uses-configuration • Nodes to speify each combination of input mechanizm supported by your application.you can specify any combination of input devices that include • reqFiveWayNav:-specify true for this attribute if your require an input device capable of navigating up,down,left and right and of clicking the current selection.this includes both trackballs and D-pads • reqHardKeyboard:- • reqKeyboardType:-nokeys,qwerty,twelvekey or undefined • reqNavigation :-nonav,dpad,trackball,wheel,undefined • reqTouchScreen:-notouch,stylus,finger,undefined

  7. Uses-features • <uses-feature> node to specify the each of the hardware features your application requires,this will prevent your application from being installed on a device that does not include a required hardware feature • If you require a camera android.hardware.camera • If you require a cmaer with auto focus androi.hardware.camera.autofocus Uses-feature node is also used to specify the the minimum version of OpenGL required by your applciation.

More Related