Created
August 7, 2013 20:22
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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