android createbitmap函数内存溢出,求解如何进行处理out of memory溢出问题

来源:互联网 发布:国外域名注册商查询 编辑:程序博客网 时间:2024/04/29 17:01

android createbitmap函数内存溢出,求解如何进行处理out of memory溢出问题

android createbitmap函数内存溢出,求解如何进行处理out of memory溢出问题

android createbitmap函数内存溢出,求解如何进行处理out of memory溢出问题

局部核心代码:bitmap = Bitmap.createBitmap(mSize.x, mSize.y, Config.ARGB_8888); cacheBitmap = Bitmap.createBitmap(mSize.x, mSize.y, Config.ARGB_8888);  cacheCanvas = new Canvas();cacheCanvas.setBitmap(cacheBitmap);cacheCanvas.drawBitmap(bitmap, 0, 0, null);mSearchView.setImageBitmap(bitmap);

0 0