Android learning notes: androidmanifest. xml advanced attributes

Source: Internet
Author: User

 

Some advanced attributes of androidmanifest. XML, the main configuration file of the android project, may be unknown to most developers. Let's take a look.

 

Supported screen size settings, we can display the specified allowed run in:

<Supports-screens <br/> Android: largescreens = "true" // WVGA <br/> Android: normalscreens = "true" // hvga <br/> Android: smallscreens = "true" // qvga <br/> Android: resizable = "true" <br/> Android: anydensity = "true"/> 

 

 

Whether or not five-digit navigation keys are supported. Generally, these keys are used in games.

<Uses-configuration Android: reqfivewaynav = "true"/> 

 

Requirements for live wallpaper features starting with Android 2.1

 

<Uses-feature Android: Name = "android. Software. live_wallpaper"/> 

 

Ensure that the device contains a light sensor.

<Uses-feature Android: Name = "android. Hardware. sensor. Light"/> 

 

The supported version of the OpenGL device. The value is an integer of the int type.

<Uses-feature Android: openglesversion = "int"> 

Reference an external jar. Generally, we can directly use <uses-library> in non-Eclipse IDE.

 

 

 

NFC requirements starting with Android 2.3

<uses-Permission Android: Name = "android. permission. NFC "> <br/> <uses-feature Android: Name =" android. hardware. NFC "Android: required =" true ">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.