Android 2.1 Crop Image Fail

夙愿已清 提交于 2020-01-17 02:13:27

问题


I followed this page to crop image on SDcard How to select and crop an image in android?

i placed the cropped image in /data/data/package.name/files, code works fine on Android 2.2 and above but when i ran this code on Android 2.1, after selecting the region i want and click "Save" and i always got "FAILED BINDER TRANSACTION" error.

Why and what is that error?


回答1:


You want like this:-

How to Select and Crop Image on Android?

Download Sample:- https://github.com/lorensiuswlt/AndroidImageCrop

Only three changes required for android 2.1:-

  1. In main.xml -> write wrap_content instead of matchparent.

  2. In AndroidManifest.xml -> <uses-sdk android:minSdkVersion="7" />

  3. In default.properties -> target=android-7

Best of luck.



来源:https://stackoverflow.com/questions/8238460/android-2-1-crop-image-fail

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