title: what is the best way to transfer data from android app to a database on server?
body: <p>I have a game for Android device and I want to upload highscore to a server. 
  So far I am using url to transfer data to a php file on server which puts data to db, this is not secure as anyone can change url and make highscore .
  What is the most common way to do so , is direct db connection in app secure ??
  Thanks</p>
  
  <p>-----edit-----
  What if I want to upload large amount of data for example I want to backup sms nd contacts on a server, and I want the sms to be  uploaded as soon as it arrives.</p>