Skip to content

Commit

Permalink
Clarifying where surface comes from and fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Bozhanov committed Aug 9, 2017
1 parent e4de220 commit aa643a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -6,9 +6,10 @@ Wrapper around the android Camera class that simplifies its usage (<a href="http
Usage:

```java

// the surface where the preview will be displayed
SurfaceView surfaceView = (SurfaceView) findViewById(R.id.surfaceView);
EasyCamera camera = DefaultEasyCamera.open();
CameraActions actions = camera.startPreview(surface);
CameraActions actions = camera.startPreview(surfaceView.getHolder());
PictureCallback callback = new PictureCallback() {
public void onPictureTaken(byte[] data, CameraActions actions) {
// store picture
Expand All @@ -23,7 +24,7 @@ If you need the `android.hardware.Camera` object, get it via `camera.getRawCamer

How to import in maven:
```xml
<dependency>
<dependency>
<groupId>net.bozho.easycamera</groupId>
<artifactId>easycamera</artifactId>
<version>0.0.1</version>
Expand Down

0 comments on commit aa643a2

Please sign in to comment.