OOM 対応

とりあえず

        imageView.setImageBitmap(BitmapFactory.decodeFile(

みたいなことをする前に

        Drawable toRecycle = imageView.getDrawable();
        if (toRecycle != null) {
            ((BitmapDrawable)toRecycle).getBitmap().recycle();
        }

みたいなソレを盛り込んでなんとかなったのかどうか。

と言いつつ

実は DefaultHttpClient あたりについて対応が必要なんですがどうしたものか。