page.title=<uses-configuration> parent.title=The AndroidManifest.xml File parent.link=manifest-intro.html @jd:body
<uses-configuration android:reqFiveWayNav=["true" | "false"] android:reqHardKeyboard=["true" | "false"] android:reqKeyboardType=["undefined" | "nokeys" | "qwerty" | "twelvekey"] android:reqNavigation=["undefined" | "nonav" | "dpad" | "trackball" | "wheel"] android:reqTouchScreen=["undefined" | "notouch" | "stylus" | "finger"] />
<manifest>
Note: Most apps should not use this manifest tag. You should always support input with a directional pad (d-pad) in order to assist sight-impaired users and support devices that provide d-pad input in addition to or instead of touch. For information about how to support d-pad input in your app, read Enabling Focus Navigation. If your app absolutely cannot function without a touchscreen, then instead use the {@code <uses-feature>} tag to declare the required touchscreen type, ranging from {@code "android.hardware.faketouch"} for basic touch-style events to more advanced touch types such as {@code "android.hardware.touchscreen.multitouch.jazzhand"} for distinct input from multiple fingers.
If an application requires a directional control, but not a control of a
particular type, it can set this attribute to "{@code true}" and ignore
the reqNavigation
attribute. However,
if it requires a particular type of directional control, it can ignore
this attribute and set {@code reqNavigation} instead.
The value must be one of the following strings:
Value | Description |
---|---|
"{@code undefined}" | The application does not require a keyboard. (A keyboard requirement is not defined.) This is the default value. |
"{@code nokeys}" | The application does not require a keyboard. |
"{@code qwerty}" | The application requires a standard QWERTY keyboard. |
"{@code twelvekey}" | The application requires a twelve-key keypad, like those on most phones — with keys for the digits from {@code 0} through {@code 9} plus star ({@code *}) and pound ({@code #}) keys. |
Value | Description |
---|---|
"{@code undefined}" | The application does not require any type of navigation control. (The navigation requirement is not defined.) This is the default value. |
"{@code nonav}" | The application does not require a navigation control. |
"{@code dpad}" | The application requires a D-pad (directional pad) for navigation. |
"{@code trackball}" | The application requires a trackball for navigation. |
"{@code wheel}" | The application requires a navigation wheel. |
If an application requires a navigational control, but the exact type of
control doesn't matter, it can set the
reqFiveWayNav
attribute to "{@code true}"
rather than set this one.
Value | Description |
---|---|
"{@code undefined}" | The application doesn't require a touch screen. (The touch screen requirement is undefined.) This is the default value. |
"{@code notouch}" | The application doesn't require a touch screen. |
"{@code stylus}" | The application requires a touch screen that's operated with a stylus. |
"{@code finger}" | The application requires a touch screen that can be operated with a finger.
Note: If some type of touch input is required for your app, you should instead use the {@code <uses-feature>} tag to declare the required touchscreen type, beginning with {@code "android.hardware.faketouch"} for basic touch-style events. |
configChanges
attribute of the
<activity>
element