My application needs a camera to work. However, it does not matter if it is a rear or front camera.
Now I have this in my manifest:
<uses-feature android:name="android.hardware.camera"/>
To claim a front camera, I know that I could also add this:
<uses-feature android:name="android.hardware.camera.front"/>
But I would like to support all devices that have a camera. Is there any way to do this?
For example, I want to support the Nexus 7, which has only a front camera. But I also want to support devices with only a rear camera.
According to some research I have done, for example:
http://code.google.com/p/android/issues/detail?id=35166
It seems to be impossible.
I think one way to solve this problem would be to make 2 separate APKs, one with android.hardware.camera and one with android.hardware.camera.front and download both on Google Play using Multi-APK support . I have not tested it yet.
Has anyone found a recommended way to support all devices with a front camera, a rear camera, or both, but not devices without any cameras?
Jorge cevallos
source share