Gallery has stopped while cropping image in kitkat Nexus7

只谈情不闲聊 提交于 2019-11-27 14:31:44

I have resolved my problem.

What i have do,

I have just change this from

 intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
 intent.addCategory(Intent.CATEGORY_OPENABLE);
 intent.setType("*/*");
 startActivityForResult(Intent.createChooser(intent, "Complete action using"), PICK_FROM_FILE);

to

 intent = new Intent(Intent.ACTION_PICK);
 intent.setType("*/*");
 intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT,
                            mImageCaptureUri);
 startActivityForResult(Intent.createChooser(intent,"Complete action using"), PICK_FROM_FILE);

Working like charm.

Thanks Everyone.

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