January 2017
Beginner to intermediate
624 pages
22h 42m
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 Google 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 AndroidManifest.xml.
Listing 16.13 Adding uses-feature tag (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