Menu

androidapi

Gergely Szasz

Android API is an overcomplicated beast full of nonsense. And this combined with JAVA ... a real nightmare.

  • squeezing out informations
    Instead of just get information about cameras, "facing", "fps", "resolutions", you have to do a lot of acrobatics to scrape together from little pieces.
    e.g. CameraInfo.getLensFacing() may return:
  • LENS_FACING_FRONT
  • ...BACK
  • ...EXTERNAL
  • ...UNKNOWN
    or throw an exception... what? what the difference betwwen unknown and ...., or why not a fifth ...REALLY_UNKNOWN?

    If the device cannot return a valid lens facing value, it will throw this exception.