码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2017-01-22 11:57:22      阅读:754      评论:0      收藏:0      [点我收藏+]

标签:code   tco   logs   image   pre   调用   问题   android   ima   

主要是用这个调用
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 调用相册的闪退问题

标签:code   tco   logs   image   pre   调用   问题   android   ima   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!