title: Linked android app to existing website's database
body: <p>I have a rails 3 application which allows users to search objects into my database.</p>
  
  <p>Now, I want to develop an Android application with PhoneGap which does the same search.</p>
  
  <p>I do not know how one is supposed to do, so I thought to 2 means. Either I do get requests to my website to get json data, or either I develops a specific Android search which is linked to my database.</p>
  
  <p>What is the right way to do it ? And how does big companies like Facebook or twitter to sent their data to Android or IOS since their database ?</p>
  
  <p>Thanks and I hope not being excluding from the subjects of stackoverflow...</p>