Skip to content

NEIL-ORZZH/LiteCamera

Repository files navigation

LiteCamera

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