May 2022
Intermediate to advanced
688 pages
20h 12m
English
Your camera implementation works great now. One more task remains: Tell potential users about it. When your app uses a feature like the camera – or near-field communication, or any other feature that may vary from device to device – it is strongly recommended that you tell Android about it. This allows other apps (like the Play Store) to refuse to install your app if it uses a feature the device does not support.
To declare that you use the camera, add a <uses-feature> tag to your manifest.
Listing 17.17 Adding a <uses-feature> tag (manifests/AndroidManifest.xml)
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bignerdranch.android.criminalintent" >
<uses-feature android:name="android.hardware.camera" ...Read now
Unlock full access