Introducing Rss Manager

Download Android Arsenal

A simple, lightweight and easy to use library to parse rss feeds into your app.

Requirements

This library requires minimum sdk version 9.

Also add Internet permission to your application manifest file.

Installation

Add this to your build.gradle version (app module)

repositories {  
    maven { url "https://jitpack.io" }
}

dependencies {  
    compile 'com.crazyhitty.chdev.ks:rss-manager:0.23'
}

How to use

Here is a simple example code on how to implement this library.

//load feeds
private void loadFeeds() {
    //you can also pass multiple urls
    String[] urlArr = {"http://feeds.bbci.co.uk/news/rss.xml"};
    new RssReader(MainActivity.this)
            .showDialog(true)
            .urls(urlArr)
            .parse(this);
}

@Override
public void onSuccess(List<RssItem> rssItems) {
    Toast.makeText(MainActivity.this, "Item: "+rssItems.get(0).getTitle(), Toast.LENGTH_SHORT).show();
}

@Override
public void onFailure(String message) {
    Toast.makeText(MainActivity.this, "Error: "+message, Toast.LENGTH_SHORT).show();
}

BUGS

  • Not every RSS feed url can be parsed via jsoup xml parser.

TODO

  • Provide better documentation
  • Optimize code
  • Make loading dialog optional

3rd party library used

Apps that uses this library

If your app uses this library and would like to get it featured here then just mail me at cr42yh17m4n@gmail.com with your app links and I will add it here. You can also mail me if you want new features.