Vadorequest
Vadorequest

Reputation: 18079

How to use ORMLite with the native Android driver?

I want use ORM with ORMLite.

But, the example show how use JDBC driver, I want use SQLite native Android driver, how I can do with this ? It's possible ?

Can you show me just an example how get the equivalent of

ConnectionSource connectionSource = new JdbcConnectionSource(databaseUrl);

With SQLite. All samples I've found use DatabaseHandler and I don't understood how to use with ORM.

Thanks for your help, will be usefull, sure.

Upvotes: 0

Views: 380

Answers (2)

Gray
Gray

Reputation: 116918

Wow. So the docs are covered with references to Android. For example, if you had read the 1.4 section of the manual which I think you are quoting in your post, it says:

NOTE: Android users should see the Android specific documentation later in the manual. See section Using With Android. There are also complete code examples that can be used. See section Example Code.

If you do a google search for ORMLite android it takes you to this page entitled:

Lightweight Java ORM Supports Android and SQLite

If you did a search for ormlite android examples it would have shown you my Android examples page.

Upvotes: 1

tbruyelle
tbruyelle

Reputation: 13045

Just read the android section of the docs, it's pretty easy.

Upvotes: 2

Related Questions