在我的应用程序要求是从图库中选择图像,然后裁剪所选图像并设置为图像视图。以下是我裁剪图像的示例代码。 //call the standard crop action intent (the user device may not support it)
Intent cropIntent = new Intent("com.android.camera.action.CROP");
我裁剪图像与活动结果时有问题。我已在设备上设置权限> 6。但是当播种和作物成功时,结果数据为空。 (imageReturnedIntent.getData()我们null和intent数据也是空的)。这是代码裁剪图像。 public static Intent cropIntent(Uri inUri, int outputX, int outputY,
boolean