html - Android Error: Out of memory -
i used html show pictures in textview, following codes load pictures. have error named "out of memory".
i think reason did not free memory in destory() of activity, how can free them?
please help, thanks!
final html.imagegetter imagegetter = new html.imagegetter() { public drawable getdrawable(string source) { drawable drawable = drawable.createfrompath(source); drawable.setbounds(0, 0, 400,500);//drawable.getintrinsicwidth(), drawable.getintrinsicheight()); return drawable; } }; tv_show.settext(html.fromhtml(html.tostring(), imagegetter, null));
Comments
Post a Comment