Skip to content

Instantly share code, notes, and snippets.

@phil-brown
Created August 7, 2013 20:22
Show Gist options
  • Save phil-brown/6178243 to your computer and use it in GitHub Desktop.
Save phil-brown/6178243 to your computer and use it in GitHub Desktop.
An example of how one can use android-rss (https://github.com/ahorn/android-rss) with droidQuery (http://bit.ly/droidquery).
final RSSHandler handler = new RSSHandler(new RSSConfig());
$.ajax(new AjaxOptions().url(options.url())
.type("GET")
.dataType("XML")
.context(this)
.SAXContentHandler(handler)
.success(new Function() {
@Override
public void invoke($ droidQuery, Object... params) {
RSSFeed feed = handler.feed();
//TODO: handle feed here.
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment