I need to exclude devices that do not have a rear view camera from installing the application. I know in AndoirdManifest.xml. I can mention: -
<uses-feature android:name="android.hardware.camera" android:required="true" />
But it will still allow devices that do not have a rear view camera (but they have a front camera) to install the application.
I read in android docs that we can mention the requirements for subforus to have a front camera
android:name="android.hardware.camera.front".
But is there a way that I can mention the reverse camera as a requirement. Sort of
android:name="android.hardware.camera.back"
There is also a way to check if this requirement will work before releasing it for playback in the store. I tried to test this on emulators and devices, but the application is always installed out of eclipse, even if they donβt have a camera at all.
Thanks! Gagan
source share