Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Bitmap;

import java.util.Iterator;

import java.util.Map;

public class Main {
    public static void freeBitmapMap(Map map) {
        Iterator iterator = map.entrySet().iterator();
        do {
            if (!iterator.hasNext())
                break;
            Bitmap bitmap = (Bitmap) ((java.util.Map.Entry) iterator.next()).getValue();
            if (bitmap != null)
                bitmap.recycle();
        } while (true);
        map.clear();
    }
}