I've spent most of the day reading and testing various ways to connect to a MySQL database. I my tests were made with a Nexus 7 table running Android 4.2.1. Here are my findings and questions...
There mostly seem to be 3 different ways to connect:
1- The web service way:
Connect Android to MySQL Database Tutorial
This way involves data transfers in JSON format and the use of an intermediary server. I have been able to implement it and use it but only with small datasets. When I limit the result to 30 or less records, it always work fine but when I go over that limit, I often get errors of incomplete process.
2- The JDBC way:
MySQL Library with jdbc
This method talks directly with the MySQL server so the port must be open. I've never been able to use it. I get no error but also no results so far.
3- The ADO way:
This method also uses the Oracle JDBC driver but implements different ways of interactions than method #2. As with method #2, I haven't been able to get any results even when getting no errors.
Remote server connectivity is a hot topic for me and I'm still relatively new to b4a. I got the hang of b4a very quickly but I still have a lot to learn. Almost every time I needed something, I've found the answer reletively quickly in the forum or the various docs. I'm impressed! I've been doing web/sql programming since 1996 so app programming is a very different world. That being said, the remote sql connectivity so far seems like an inconsistent process.
What are the database junkies doing for a good time around here? Is there a prettier and/or more consistent way to do this? I will continue testing but I was just inquiring to see if I can save some time.
Thanks in advance.
JF.
There mostly seem to be 3 different ways to connect:
1- The web service way:
Connect Android to MySQL Database Tutorial
This way involves data transfers in JSON format and the use of an intermediary server. I have been able to implement it and use it but only with small datasets. When I limit the result to 30 or less records, it always work fine but when I go over that limit, I often get errors of incomplete process.
2- The JDBC way:
MySQL Library with jdbc
This method talks directly with the MySQL server so the port must be open. I've never been able to use it. I get no error but also no results so far.
3- The ADO way:
This method also uses the Oracle JDBC driver but implements different ways of interactions than method #2. As with method #2, I haven't been able to get any results even when getting no errors.
Remote server connectivity is a hot topic for me and I'm still relatively new to b4a. I got the hang of b4a very quickly but I still have a lot to learn. Almost every time I needed something, I've found the answer reletively quickly in the forum or the various docs. I'm impressed! I've been doing web/sql programming since 1996 so app programming is a very different world. That being said, the remote sql connectivity so far seems like an inconsistent process.
What are the database junkies doing for a good time around here? Is there a prettier and/or more consistent way to do this? I will continue testing but I was just inquiring to see if I can save some time.
Thanks in advance.
JF.