Is there a wrapper library for the Android Camera API that covers all the pitfalls in the different API versions (f.e. checks the version if front camera, auto-focus or flash light is available and provides controls for it in the UI) and all the hardware bugs in different handsets ?
For anybody who stumbles here searching a camera library, there is CWAC-Camera library which helps reducing the somehow extensive Android Camera API and, at the same time, bringing better support across various devices:
https://github.com/commonsguy/cwac-camera
Hope this helps!
Edited
CWAC-Camera library is deprecated
use this second version
https://github.com/commonsguy/cwac-cam2
If you aren't so ambicious, the Square Camera is a very simple approach to task, and seems to work nicely: https://github.com/boxme/SquareCamera
No video record, no options, but good focus and the square approach avoid issues with resolution and portrait/landscape modes. Seems to work on devices where CWAC2 doesn't.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With