Wrapper Library for Android Camera API

12,743

Solution 1

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

Solution 2

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.

Share:
12,743
georam
Author by

georam

Updated on July 26, 2022

Comments

  • georam
    georam almost 2 years

    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 ?

  • Arkadiusz 'flies' Rzadkowolski
    Arkadiusz 'flies' Rzadkowolski almost 11 years
    It doesn't fix any bugs or pitfalls actually. It's a wrapper with some basic options like solarize etc.
  • Ganesh Krishnan
    Ganesh Krishnan over 8 years
    cwac-camera is now deprecated. Better to use github.com/commonsguy/cwac-cam2 I use this for my app: play.google.com/store/apps/details?id=co.getintouch.play
  • Renascienza
    Renascienza over 8 years
    Taking a low level picture from a unknow device camera will never be really a "simple thing". Was hard on desktop Java as well. But if you just need take a picture and nothing more, is fairly simple indeed. Just send an Intent with MediaStore.ACTION_IMAGE_CAPTURE action and deal with result.
  • Ghedeon
    Ghedeon over 7 years
    One would expect it to be a view but unfortunately, Intent based only.