Connect Android app to Amazon RDS

I have an Android app and I want to move my local database to the cloud. I decided to use the SQL database, not for NoSQL, because I want to perform complex queries. I created a database instance in RDS from Amazon, and I populated the database.

Now I want to connect my mobile application to my cloud database. I sow samples for connecting a NoSQL database, but I could not find examples for RDS. I saw that it is recommended to create a web service and connect to this web service, but it seems a lot more complicated than using NoSQL, and it doesn't seem right.

Does Amazon offer some Android API / service - an RDS connection? Do you know any sample code that handles this aspect?

+6
android amazon web-services cloud database-connection
source share
1 answer

Does Amazon offer some Android API / service - an RDS connection?

Not. AWS does not currently have an API for interacting with an RDS instance.

Do you know any sample code that handles this aspect?

You can access your database using PHP and get a JSON response. If your RDS instance uses MySQL, then you're in luck. There is already a lot of documentation on connecting Android to MySQL using PHP. You can get a great sample code and instructions for this blog post .
Here is a very popular link for connecting Android and MySQL .

+3
source share

All Articles