I need to open, read and insert items into an online SQLite database from an Android app.
I know url, username and password. In JavaSE i would do the following:
Class.forName("com.mysql.jdbc.Driver");
Connection dbConnection = DriverManager.getConnection(URL, USER, PASSWORD);
I read that I can't do this in Android because there is not a JDBC Driver (there is a "SQLite.JDBCDriver"
but it is not documented and not recommended).
So which is the easiest way? I asked to Google but it looks like he either doesn't know.
You should expose your datasource like this via an intermediary such as a Web Service for at least the following reasons:
I'm sure there are plenty of more reasons, but the above are the most prevalent in my mind.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With