Reputation: 45
I have a server and I am using ORMLite for the connection with the server, however I had seen the examples but in the task of creating the connection don't know how to do it without using JDBC.
// create a connection source to our database
ConnectionSource connectionSource =
new JdbcConnectionSource('jdbc:mysql://internetserver/');
I had seen a lot of posts that says how JDBC is not right in Android but I see no examples and no updated posts that explains the best/most correct way to do a DB connection for an ORM with Android. Just to make you know, my idea are shops with data alocated on the cloud, and then to take that information and create the objects that are active in the DB.
Upvotes: 1
Views: 882
Reputation: 136
I have not worked with ORMLite for a long time (it's too old, weak and leak of documentation). On Android you don't use JDBC to create database connection.I will give you some suggestions:
Upvotes: 2