How to connect MySQL database in Eclipse on android application?

Recommended Answers

Do not make mistake of connecting mobile app to MYSQL direct. Setup rest service that will take request from app, it will query database and respond back to app with requested data. The most commont patern will consist from JSON or XML

Jump to Post

All 2 Replies

Do not make mistake of connecting mobile app to MYSQL direct. Setup rest service that will take request from app, it will query database and respond back to app with requested data. The most commont patern will consist from JSON or XML

Also, your app can talk to a web server running PHP, which can easily access a MySQL database. In any case, you DO NOT want to run the database on your mobile device - it would quickly bring it to its knees!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.