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 Build a Blog Reader Android App Getting Data from the Web Moving Work from the Main Thread to an AsyncTask

Old Man
Old Man
1,333 Points

No code 200 returned in LogCat but an exception caught...

cannot get a 200 responseCode but in looking through LogCat i see an "Exception caught: java.net.MalformedURLException: Protocol not found: http//blog.teamtreehouse.com/api/get_recent_summary/?count=20" my code seems to be identical to the example, is there some other reason i may be getting this exception? i've had lots of bugs from different versions of eclipse etc...

2 Answers

Paolo Scamardella
Paolo Scamardella
24,828 Points

The error means the url that you are using is not correct. Try this: http://blog.teamtreehouse.com/api/get_recent_summary/?count=20 You forgot to add : after http

Old Man
Old Man
1,333 Points

Sure did, thanks!

Paolo Scamardella
Paolo Scamardella
24,828 Points

If this is the correct answer, please accept my answer. Thanks