Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.android.camera.action.CROP alternative?

It seems com.android.camera.action.CROP isn't reliable, since it's an internal API and is not available on every device. However, I find this library quite practical. It works great on my Galaxy Nexus.

Should I really be thinking on implementing my own solution? Am I taking too much a risk by using com.android.camera.action.CROP? Moreover, in some devices, it opens up google + crop photo which crashes later.

Finally, are there any open libraries out there I could use that would accomplish the same thing, and be safe to use on any android device?

like image 406
Michael Eilers Smith Avatar asked Jan 07 '13 02:01

Michael Eilers Smith


1 Answers

I hate to answer my own question, but here it is:

https://github.com/lvillani/android-cropimage

This is the source code to the library. Just include it inside your project and you won't have to worry about devices not having it anymore.

like image 86
Michael Eilers Smith Avatar answered Oct 20 '22 16:10

Michael Eilers Smith