What is the best option to pull data from wordpress posts into Android?

I need to take data from a wordpress site(posts) and put it natively into an android app.I have tried a few approaches but am getting lost in my own head. I have access to the admin panel so I can add plugins if need be.

Possible ways(in my mind):

Read More

RSS Parser(best option for android?)
JSON api for wordpress(can I use this for android?)
???

I tried using XMLPullParser and I can get the posts into a ListView but I cannot find a way to parse the text of the article(the XML contains the full text for all articles).

Any ideas? I can post my current code if necessary.

Related posts

Leave a Reply

2 comments

  1. I cannot find a way to parse the text of the article(the XML contains the full text for all articles).

    Save that html text to a String and then feed it to a WebView to display it.

    Possible ways(in my mind): RSS Parser(best option for android?) JSON api for wordpress(can I use this for android?) ???

    Both are valid. The JSON api would give you more control however as the RSS produced by WordPress is rather static (you can ask for the RSS of a category, archive, … but JSON API would allow you to get data for any object of WP exposed by the JSON API plugin)