Popularity
5.8
Growing
Activity
0.0
Stable
640
26
104

Code Quality Rank: L5
Programming language: Java
License: Apache License 2.0
Tags: Utility    
Latest version: v0.0.1

EasyCamera alternatives and similar packages

Based on the "Utility" category.
Alternatively, view EasyCamera alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of EasyCamera or a related project?

Add another 'Utility' Package

README

EasyCamera

Wrapper around the android Camera class that simplifies its usage (read more about the process)

Usage:

// the surface where the preview will be displayed
SurfaceView surfaceView = (SurfaceView) findViewById(R.id.surfaceView);
EasyCamera camera = DefaultEasyCamera.open();
CameraActions actions = camera.startPreview(surfaceView.getHolder());
PictureCallback callback = new PictureCallback() {
    public void onPictureTaken(byte[] data, CameraActions actions) {
        // store picture
    }
};
actions.takePicture(Callbacks.create().withJpegCallback(callback));

By default, preview stops when a picture is taken. If you want to restart preview, specify .withRestartPreviewAfterCallbacks(true) on the Callbacks object

If you need the android.hardware.Camera object, get it via camera.getRawCamera()

How to import in maven:

    <dependency>
        <groupId>net.bozho.easycamera</groupId>
        <artifactId>easycamera</artifactId>
        <version>0.0.1</version>
        <type>aar</type>
    </dependency>

How to import in gradle:

    compile 'net.bozho.easycamera:easycamera:0.0.1:aar@aar'