com.android.camera.action.CROP alternative?

倖福魔咒の 提交于 2019-12-19 17:48:16

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/14189247/com-android-camera-action-crop-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!