1

在方法 performCrop() 中,代码如下:

public void performCrop() {
    try {
        Intent cropIntent = new Intent("com.android.camera.action.CROP");
        cropIntent.setDataAndType(picUri, "image/*");
        cropIntent.putExtra("crop", "true");
        ...
        startActivityForResult(cropIntent, PIC_CROP);
    } catch (ActivityNotFoundException anfe) {
        ...
    }

在 onActivityResult 方法中,代码:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    ...
    Bundle extras = data.getExtras();//Here occurs the exception
    ...
    }
}
4

0 回答 0