Search code examples
mysqldatabase-connectionandroid-2.1-eclair

Android 2.1 device to remote mysql database connection


I am developing an app that should connect to some server machine and access to a database on it. I have followed various tutorials online and now I am confused. Can someone please tell me what is the way of achieving this? webviews php server client? too many things I have seen in my mind and now confusing me.

I need a clean idea.

Thanks in advance!!!


Solution

  • Best you can do in my opinion:

    Write (in PHP, ASP.NET, JavaEE, whatever server side web programming language you want) a little HTTP Restful API to access your remote database.

    You will issue HTTP REQUEST to GET/MODIFY data in MySQL and you will receive JSON responses. JSON will be very easy to parse and integrate with your Android project.