html - Unable to decode stream: java.io.FileNotFoundException Android -
i trying html content website , displaying in text view. getting error:
"unable decode stream: java.io.filenotfoundexception"
this logcat:
03-10 10:41:22.905: e/bitmapfactory(2994): unable decode stream: java.io.filenotfoundexception: /http:/www.mobileappscentre.co.uk/healthapp/wp-content/uploads/2013/11/tmt-instability-226x300.jpg: open failed: enoent (no such file or directory)
this code used
spanned htmlspan = html.fromhtml(display, new imagegetter() { @override public drawable getdrawable(string source) { string path = source; drawable bmp = drawable.createfrompath(path); bmp.setbounds(0, 0, bmp.getintrinsicwidth(), bmp.getintrinsicheight()); drawable bmp = null; return bmp; } }, null); blog.settext(htmlspan);
when toast file 'path' , getting correct url.
Comments
Post a Comment