---
title: "图片回收"
author: "Java-Object"
date: "2013-08-14T15:55:43Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2013-08-14T15:55:43Z"
id: 1924527
url: "https://hezd.iteye.com/blog/1924527"
---

// 先判断是否已经回收

if(bitmap != null && !bitmap.isRecycled()){  

        // 回收并且置为null

        bitmap.recycle();  

        bitmap = null;  

}  

System.gc();