当前位置: 代码迷 >> 综合 >> BitmapFactory.decodeFile内存溢出和变相解决方案
  详细解决方案

BitmapFactory.decodeFile内存溢出和变相解决方案

热度:22   发布时间:2023-12-14 02:29:33.0

BitmapFactory 的decodeFile容易出现内存溢出,所以我用University ImageLoader来加载图片 变相解决这个问题





   ImageLoader.getInstance().displayImage(path,memberImg);
/*    if (file.exists()) {
      //  bitmap = BitmapFactory.decodeFile(path);

  相关解决方案