首页 > 移动平台 > 详细

Android6.0 调用相册的闪退问题

时间:2017-01-22 11:55:11      阅读:310      评论:0      收藏:0      [点我收藏+]
主要是用这个调用
Intent intent2 = new Intent(Intent.ACTION_PICK);
intent2.setType("image/*");
startActivityForResult(intent2, REQUESTCODE_GALLERY);

如果使用下面的这个Android6.0 会出现 

E/HAL: load: id=gralloc != hmi->id=gralloc

  Intent intent2 = new Intent(Intent.ACTION_GET_CONTENT);
                    intent2.setType("image/*");
                    startActivityForResult(intent2, REQUESTCODE_GALLERY);

 

Android6.0 调用相册的闪退问题

原文:http://www.cnblogs.com/niupi/p/6339676.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!