Skip to content

NullCrazy/CKCamera

 
 

Repository files navigation

CKCamera

Simply take pictures and cut.

Screenshot

Code Example

You need get CameraManager instance to open camera.

  CameraManager.getInstance().openCamera(MainActivity.this);

And you receive picrure through the following code.

  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        if (requestCode == Constants.REQUEST_CROP && resultCode == RESULT_OK) {
            Bitmap bitmap= ImageUtils.decodeBitmapWithOrientationMax(data.getData().getPath(),
                    DeviceUtil.getScreenWidth(this), DeviceUtil.getScreenHeight(this));

            croppedPhoto.setImageBitmap(bitmap);
        }
  }

About

Simply take pictures and cut. support API8+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%