Simple-Rss2-Android

Additional

Language
Java
Version
N/A
Created
Apr 2, 2013
Updated
Nov 21, 2019 (Retired)
Owner
Bruno Hautzenberger (salendron)
Contributor
Bruno Hautzenberger (salendron)
1
Activity
Badge
Generate
Download
Source code

Advertisement

Simple-Rss2-Android

A really simple RSS 2.0 Parser Library for Android. It includes an asynchronous call to get feeds in the background and than nofifies the UI thread using a callback object.

You can either just download the *.jar file and include it in your project or clone the whole repository which contains the library project as an Android App Project with Demo-Activity.

Example:

SimpleRss2Parser parser = new SimpleRss2Parser("http://pingeb.org/feed", 
 new SimpleRss2ParserCallback() {
  @Override
  public void onFeedParsed(List<RSSItem> items) {
   for(int i = 0; i < items.size(); i++){
    Log.d("SimpleRss2ParserDemo",items.get(i).getTitle());
   }
  }
  @Override
  public void onError(Exception ex) {
   Toast.makeText(mContext, ex.getMessage(), Toast.LENGTH_SHORT).show();
  }
 };
);
parser.parseAsync();