softreferencesを含む弱いハッシュマップにデータオブジェクトを配置する必要があります。私の "Drawable"オブジェクトをどのようにしてソフトリファレンスに変換するのですか?Java、オブジェクトをsoftreferenceに変換する
WeakHashMap <String, SoftReference<Drawable>> tempPulled = new WeakHashMap<String, SoftReference<Drawable>>();
Drawable pulled = BitmapDrawable.createFromResourceStream(null, null, conn.getInputStream(), "galleryImage", options);
SoftReference<Drawable> sPulled;
tempPulled.put(id, pulled);
tempPulledは "sPulled" を置くべきである、softreference
私は組み込みクラスを使用しています。 – CQM