【问题标题】:Android 2.1 Crop Image FailAndroid 2.1 裁剪图像失败
【发布时间】:2012-01-04 12:35:54
【问题描述】:

我按照此页面在 SD 卡上裁剪图像How to select and crop an image in android?

我将裁剪后的图像放在 /data/data/package.name/files 中,代码在 Android 2.2 及更高版本上运行良好,但是当我在 Android 2.1 上运行此代码时,在选择区域后我想要并单击“保存”,我总是收到“FAILED BINDER TRANSACTION”错误。

为什么会出现这个错误?

【问题讨论】:

    标签: android crop


    【解决方案1】:

    你想要这样:-

    How to Select and Crop Image on Android?

    下载示例:- https://github.com/lorensiuswlt/AndroidImageCrop

    android 2.1 只需要三个更改:-

    1. 在 main.xml -> 写 wrap_content 而不是 matchparent。

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

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

    祝你好运。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-02
      • 2014-02-14
      • 2018-09-20
      • 2011-11-15
      • 1970-01-01
      • 1970-01-01
      • 2016-05-04
      相关资源
      最近更新 更多