resolveUri failed on bad bitmap uri on Camera
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having troubles while trying to create a bitmap from a Camera AND an Image Picker. I used a code that creates an Uri by the Camera so I added a condition to my function that already load pics from gallery. Here is the onActivityResult : protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == RESULT_LOAD_IMAGE || requestCode == RESULT_CAMERA) { Uri selectedImage = null; if(requestCode == RESULT_LOAD_IMAGE) { selectedImage = data.getData(); }