ORMLite with Android DB Connection

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.

1 answer