title: Android development: Getting data from WordPress
body: <p>I'm making an android app for displaying some school events(Title of the event and a posted picture of the event). </p>
  
  <p>The only thing I need for the app is getting data(String for title, ImageView for the picture)from a server.</p>
  
  <p>The answer of this post, <a href="https://stackoverflow.com/questions/17396814/android-development-getting-data-from-the-web">Android Development : Getting data from the web</a>, seems to be the easiest and the most straight forward way I could find. </p>
  
  <blockquote>
    <p>"The easiest way to display posts into an Android application will be
    to use JSON data on the web, and read it into a Master Detail Android
    application.</p>
    
    <p>On the website side, getting the data to display in JSON seems to be
    the most difficult part of your problem. It would be easy if it was a
    Wordpress site, as there are plugins that will do this for you.</p>
    
    <p>On the application side, getting the data and parsing it into a master
    detail flow is a fairly trivial task."</p>
  </blockquote>
  
  <p>I know almost nothing about database, networking, wordpress, and JSON. :(</p>
  
  <p>I have made an wordpress account and install the JSON plugin and wordpress web server plugin. But that's how far I could get :(</p>
  
  <p>My idea is </p>
  
  <p>in the wordpress blog site: make a post for each new event. The title of the post is the event title and the content of the post just a picture, which is a post about the event.</p>
  
  <p>in the app side: add a synchronize task within the onCreate function, so when the app is opened, it will check if there's any new post in the blog. If there's any, it will get the blog title and add to the listView, and get the picture inside of the blog and create a new layout in which has a ImageView for holding the picture.</p>
  
  <p>As I said, I know nothing about web service and networking. </p>
  
  <p>I have no clue about how to check if there's any new post in the blog comparing with those events already in the app.....</p>
  
  <p>These two examples are the closet I could get.</p>
  
  <p><a href="http://android.programmerguru.com/android-webservice-example/" rel="nofollow noreferrer">http://android.programmerguru.com/android-webservice-example/</a>
  <a href="http://wordpress.org/support/topic/phonegap-android-app-built-around-json-api" rel="nofollow noreferrer">http://wordpress.org/support/topic/phonegap-android-app-built-around-json-api</a>   (I don't understand this one! :/)</p>
  
  <p>Please help! This thing is giving me a big headache! And it's the last step I need for the app!</p>
  
  <p>Any help or sample code will be greatly appreciated!!</p>
  
  <p>And most importantly, Merry Christmas, everyone! XD</p>