ArthurHub / ArthurHub/Android-Image-Cropper
Camera does not open while others open
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
I'm able to open gallery, drive and different ways to open and crop image **but not able to open camera**
I am using fragment for cropping image.
`"CropImage.startPickImageActivity(this);"`
XML
```
```
Button on click
```
buttonToChoose.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onSelectImageClick(v);
}
});
```
I'm also overriding the method.
```
private static ScanInvoice scanInvoiceFragment;
public void onSelectImageClick(View v) {
scanInvoiceFragment.startActivityForResult(CropImage.getPickImageChooserIntent(getActivity()), CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE);
}
```
The crop image method
```
private void startCropImageActivity(Uri imageUri) {
CropImage.activity(imageUri)
.setGuidelines(CropImageView.Guidelines.ON)
.setMultiTouchEnabled(true)
.start(getContext(), this);
}
```
Manifest
```
```
It would be great be someone could look into the issue and help me out.
Github source code: https://github.com/mukund68/SmartRef
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.