主要是用这个调用
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);

 

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2021-04-03
  • 2021-12-13
  • 2021-05-03
  • 2021-06-05
  • 2021-06-10
相关资源
相似解决方案