Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to a remote database...online database

Tags:

android

I've been looking for a week now... I need some help connecting to a remote database... I want my app to get data out of the database and update the database... I've tried this but i don't understand it.

like image 808
sakkie Avatar asked Nov 08 '10 14:11

sakkie


1 Answers

Easiest way to connect a Mobile (ANDROID, iPhone, Symbian, WP7, you name it) device to a Data Base is to write a HTTP based proxy for your database.

This is:

ANDROID -> HTTP -> APPLICATION SERVER -> DATABASE

And then the other way around to get results:

DATABASE -> APPLICATION SERVER -> HTTP -> ANDROID

In this scenario, you will write a HTTP based application in your favorite language (PHP, Python, Perl, Java, .NET) and deploy it in your favorite Application Server (Apache, Tomcat, IIS) and, in that application you will publish URLs your Android app will access to send/retrieve data to your database.

like image 50
Pablo Santa Cruz Avatar answered Oct 23 '22 16:10

Pablo Santa Cruz