MohammedAlimoor / CameraView

android CameraView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CameraView

CameraView for android ###very easy to use just add CameraView in xml alt tag

how to use

    <your.packge.name.CameraView
       android:id="@+id/cameraView"
       android:layout_width="250dp"
       android:layout_height="300dp"
       android:layout_margin="4dp"
       />

Take Picture

  ((CameraView) findViewById(R.id.cameraView)).takePicture(new CameraView.SaveImageListener() {
          @Override
          public void saveFile(String path) {
              Toast.makeText(MainActivity.this, "Path" + path, Toast.LENGTH_SHORT).show();
          }

          @Override
          public void error(Exception e) {
              Toast.makeText(MainActivity.this, "Error" + e.toString(), Toast.LENGTH_SHORT).show();

          }
      });
      

About

android CameraView

License:Apache License 2.0


Languages

Language:Java 100.0%