What is the Best way to export a bunch of strings from an android app to a mySQL database?
I’ve looked all over the place. All over here and all over the internet. I have found a bunch of different answers but nothing really makes sense.
Should I use an AsyncTask or a HTTPclient? I also looked at the Microsoft JDBC database export but that also didn’t really make any sense to me. Thanks for any help.
edit: I need to add the data to the mySQL database table.
You can do it with JDBC connector and JDBC API. I’ve tested with connector mysql-connector-java-3.0.17-ga-bin.jar and works perfect and fast. You’ll need an asynctask for this or a Runnable in own thread to avoid locking UI thread and risking killing your apk.
Check here for an example