What if you want to support many input configurations Define multiple uses

What if you want to support many input configurations

This preview shows page 14 - 22 out of 47 pages.

What if you want to support many input configurations? Define multiple <uses-configuration> tags
Image of page 14

Subscribe to view the full document.

Specifying Supported Input Methods (Cont’d) For example, if your application requires a physical keyboard and touchscreen input using a finger or a stylus, you need to define two separate <uses-configuration> tags in your manifest file. <uses-configuration android:reqHardKeyboard="true" android:reqTouchScreen="finger" /> <uses-configuration android:reqHardKeyboard="true" android:reqTouchScreen="stylus" />
Image of page 15
Specifying Required Device Features The <uses-feature> tag is used to specify features your application needs to run properly. These settings are for informational purposes only. Android does not enforce these settings. Publication channels such as Google Play use this information to filter the applications available to a given user. Other applications might check this information as well.
Image of page 16

Subscribe to view the full document.

Specifying Required Device Features (Cont’d) For example, an application that requires both a light and a proximity sensor requires two tags. <uses-feature android:name="android.hardware.sensor.light" /> <uses-feature android:name="android.hardware.sensor.proximity" />
Image of page 17