# Camera Kit Rewrite

DevFeed: [Camera Kit Rewrite](<https://devfeed.tech/articles/camera-kit-rewrite-19238.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/camerakit-rewrite/>)

Author: Shai Almog

Published: 2019-04-29T00:00:00Z

Content type: article

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Library](<https://devfeed.tech/topics/library.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [camera](<https://devfeed.tech/tags/camera.md>), [camera2](<https://devfeed.tech/tags/camera2.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [library](<https://devfeed.tech/tags/library.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

The article describes a rewrite of Codename One's low-level camera support. After compatibility and stability problems with Android Camera Kit, the implementation moved to Golden Eye while retaining the existing cn1lib name. The library also gained partial support for the JavaScript port and web applications, with a mostly unchanged API.

## Source excerpt

The native low level camera API on Android is a disaster. It's often cited as one of the worst API's on Android. To make matters worse there are two separate API's Camera and Camera2 (yes really). You need to use Camera2 where it's available but that means no support for older devices. To solve this we picked the Android Camera Kit library when we started building our low level camera support. This proved to be a mistake.