Search code examples
androidcameracrop

Camera crashes due to crop code one line, how to crop in standard way


My app crashes due to camera.putExtra("crop", "true"); Im assuming this is due to some stupid inconsistent vendor camera drivers or something... joys of fragmented market i guess.

How can i crop if this doesn't work? preferably have crop square on screen to guide user. Is there a standard ~99% proof method?


Solution

  • Give a look at the below mentioned link.

    Android intent with multiple option i.e , Pick image from gallary and capture image using front camera

    if you won't go to intent use crop library

    https://github.com/jdamcd/android-crop