M. M.
- Forum posts: 27
May 6, 2015, 2:33:07 PM via Website
May 6, 2015 2:33:07 PM via Website
Hallo zusammen,
mein Image Task (welcher Asynchron verläuft) benötigt extrem viel Ram und gibt diese nicht wieder frei.
URL aURL = new URL(url);
URLConnection conn = aURL.openConnection();
conn.connect();
InputStream is = conn.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
bm = BitmapFactory.decodeStream(bis);
bis.close();
is.close();
Wie kann ich das Ram wieder frei geben?
Die Bilder werden in ein ImageView gespeichert.
Meine App soll sich hauptsächlich um Bilder,
so kann es gut sein, dass es 100-1000 Bilder runterladen soll (natürlich gestaffelt in 20er Schritten).
Hat mir jemand eine Lösung?
Soll ich sie Offline speichern ?
Mfg
M.M
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.