2

My question actually is in the title. I am developing an Android application which populates a distant mysql database (in an amazon cloud server).

Why not using the same techniques used in java programs (like using a import java.sql.Connection object)?

Thank you, R.

Rami
  • 8,044
  • 18
  • 66
  • 108

1 Answers1

0

There are Tons of benefits in REST , few are below

You can use standard HTTP method call-outs, available on every language and platform, to make requests and retrieve information

Standards-based security: Utilize the OAuth protocol for authenticating your REST calls

Flexible formats: The REST API supports both an XML serialization as well as the JSON format

sumit
  • 15,003
  • 12
  • 69
  • 110
  • 1
    IMO, this answer is misleading, "HTTP cache and proxy server..." why does this help me when I'm populating stuff? http cache is not going to cache my data that I want to populate... "your complex business/database logic..." and again why does this help me in this situation..."you don't need to make separate..." there is a url to post/put what you want to insert in the db.... – jjchiw May 24 '12 at 11:19
  • 1
    "last but not the least, json is too light than xml" where in the rest spec say that you must use json, I can use xml if I want to, there are many rest services that use xml too. And in all the answer it does not answer, "Why not using the same techniques used in java programs (like using a import java.sql.Connection object)?" – jjchiw May 24 '12 at 11:19