How to connect MySQL database in Eclipse on android application?

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.