我是靠谱客的博主 激动发夹,这篇文章主要介绍MediaStore.Images.Media.insertImage(getContentResolver(), destMap, null, null)出现空指针问题,现在分享给大家,希望可以做个参考。
在bitmap转uri 的时候 在转化的时候的时候出现空指针问题。
开始的代码为
Uri uri = Uri.parse(MediaStore.Images.Media.insertImage(getContentResolver(), destMap, null, null));
后期进行的代码的修改
Uri uri = Uri.parse(MediaStore.Images.Media.insertImage(MainActivity.this.getContentResolver(), destMap, null, null));
两个null的参数分别是 title 和description
在填写的时候 title是不能相同的
最后
以上就是激动发夹最近收集整理的关于MediaStore.Images.Media.insertImage(getContentResolver(), destMap, null, null)出现空指针问题的全部内容,更多相关MediaStore.Images.Media.insertImage(getContentResolver(),内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复