I have just started to get my feet wet on Mono for Android. I have a remote server that has a MySQL database and my question is that is there a way to connect to the database from my android app and perform SQL queries?
Asked
Active
Viewed 1,161 times
1 Answers
1
You will need to build a webservice that interfaces between your app and your database! You SHOULD NOT attempt to directly connect!
This looks like a good tutorial and explanation of why you can't connect directly: http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/8339-connect-android-mysql-database-tutorial.html
Some other similar StackOverflow questions:
android connect to mysql database directly using mysql-connector

Community
- 1
- 1

barbiepylon
- 891
- 7
- 23
-
You are way better off doing this via a web service as you don;t want to store MySQL database credentials in a client app and then open your MySQL DB up to global access. – Mike Brant Jul 17 '12 at 14:31
-
And what if you were making a database management application? – Zoey Nov 03 '14 at 22:18