1 Star 1 Fork 0

oycocean / Android-RSS-Reader-Library

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.markdown

With this library you can easily parse RSS feeds using the SAX APIs available in Android.

Usage

You can use the API by simply calling RssReader.read(URL url). This will make the request to the url provided and parse it to RssFeed and RssItem objects. It can't get any easier than this.

Here is an example of how to fetch a RSS feed and iterate through every item:

URL url = new URL("http://example.com/feed.rss");
RssFeed feed = RssReader.read(url);

ArrayList<RssItem> rssItems = feed.getRssItems();
for(RssItem rssItem : rssItems) {
	Log.i("RSS Reader", rssItem.getTitle());
}

License

Copyright (c) 2011 Mats Hofman

Licensed under the Apache License, Version 2.0

Comments ( 0 )

Sign in for post a comment

About

A RSS reader library to fetch a RSS feed from the web and parse it to workable objects spread retract
Android
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
Android
1
https://git.oschina.net/oycocean/Android-RSS-Reader-Library.git
git@git.oschina.net:oycocean/Android-RSS-Reader-Library.git
oycocean
Android-RSS-Reader-Library
Android-RSS-Reader-Library
master

Search