组织头像上传时候,不兼容android6.0,并且 imageview.setImageBitmap(BitmapFactory.decodeFile(IMAGE_FILE_LOCATION));//这种方法不对,显示空白。

通过群的帮助找到以下个人的笔记:


http://note.youdao.com/share/web/file.html?id=1440d93711eab06fee98daacbfd55e35&type=note




Bitmap bit = null;
    try {
     bit = BitmapFactory.decodeStream(OrganizationNewActivity.this.getContentResolver().openInputStream(imageUri));
    } catch (FileNotFoundException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
    }
    mImgPicture.setImageBitmap(bit);


//    mImgPicture.setImageBitmap(BitmapFactory.decodeFile(IMAGE_FILE_LOCATION));//这种方法不对,显示空白

相关文章:

  • 2021-11-19
  • 2021-11-09
  • 2021-07-11
  • 2021-10-21
  • 2021-04-17
  • 2021-05-31
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案