看recycle方法的注释就好了,Google的注释总不会骗人。
This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the bitmap. This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap.
操作不能撤销,只应确定不用时调用。这是个高级用法,一般没必要调用,因为普通的GC进程会在bitmap没有引用时释放内存。
Android中有没有必要调用Bitmap的recycle()在Android应用里,最耗费内存的就是图片资源。而且在Android系统中,读取位图Bitmap时,分给虚拟机中的图片的堆栈大小只有8M,如果超出了,就会出现OutOfMe...