July 2015
Beginner to intermediate
600 pages
18h 59m
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 NFC, 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.11 Adding uses-feature tag (AndroidManifest.xml)
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.bignerdranch.android.criminalintent" > <uses-permission ...
Read now
Unlock full access