Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Displaying images from json in android

I am trying to display images from my blog in my android app but my project images url contains some html chunks in it... project_images": [ " img class=\"alignnone wp-image-107 size-large\" src=\"http://www.spocktechblog.com/project/wp-content/uploads/2014/04/4-1024x576.jpg\" alt=\"4\" width=\"1024\" height=\"576\" />"

]

how to extract source already done with imageloader.... cant access src its throwing an exception

05-16 04:44:40.709: W/System.err(2003): java.net.MalformedURLException: Protocol not found: [

" img class=\"alignnone size-full wp-image-71\" src=\"http:\/\/www.spocktechblog.com\/project\/wp-content\/uploads\/2014\/04\/Hd-Car-wallpapers-2.jpg\" alt=\"Hd-Car-wallpapers-2\" width=\"1600\" height=\"1200\" \/>" ] Ben Jakuben Zac Gordon

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Can you paste in the code you are trying? If you can isolate the URL you could use a library like Picasso to easily load the images asynchronously.

Ben Jakuben Thank you sir i successfully parsed my json data and used smart image view in second activity to retrieve images i m not using the web view so its dynamic and no performance issue yet if any further doubt will occur. plz do reply