错误:03-26 11:27:27.016: E/AndroidRuntime(27741): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CROP dat=file:///mnt/sdcard/1364268439051.jpg typ=image/* (has extras) }代码:Intent in = new Intent("android.intent.action.CROP"); 
in.setDataAndType(Uri.fromFile(sdcardTempFile), "image/*");
in.putExtra("aspectX", 1);// 裁剪框比例
in.putExtra("aspectY", 1);
in.putExtra("outputX", crop);// 输出图片大小
in.putExtra("outputY", crop);
in.putExtra("return-data", true); 
        in.putExtra("output",
Uri.fromFile(sdcardTempFile));
startActivityForResult(in, 102);其中sdcardTempFile是File类型,里面存放的是图片文件。

解决方案 »

  1.   

    androidmanifest文件中配置的有问题吧
    还有权限有没有加
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
      

  2.   

    ActivityNotFoundException 这个异常应该是因为你的设备上没有能够处理这个请求的Activity吧?
      

  3.   

    你是说我手机安装的android系统中没有处理这个Activity吗?可如果传入的uri是图库的就正确,说明是由这个activity的。
      

  4.   

    android.intent.action.CROP
    不是这个action