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 Trying Code and Catching Exceptions

Problem with the link...

I am learning to build a blog reader app. But the link used in that app is "http://blog.teamtreehouse.com/api/get_recent_summary/?count=20". So what is this link and how can i make my blog link like that.

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Check out this previous Forum post. It talks about how to try to configure your own blog (if it's a WordPress blog) to work like this.

No, my Blog is hosted by Weebly.

No, my Blog is hosted by Weebly.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Okay, so you need to find out what kind of feeds are enabled by Weebly, though a quick search looks like it might only be RSS, not JSON. An RSS feed is really just a specialized form of XML. XML can be downloaded, parsed, and processed just like a JSON feed, but you have to use different classes and methods to parse through it to get the data.

So step 1: See what kind of feed is available.

Step 2: If JSON, proceed with code similar to the Blog Reader project. If RSS/XML, you'll need to look for a different tutorial on how to parse that as we don't currently offer that. :-(

Yes Weebly uses RSS feeds. Where Can i Find that Code?