A
A
Andriy Muzyka2017-02-12 11:51:59
Java
Andriy Muzyka, 2017-02-12 11:51:59

android how to load existing sqlite db?

What is the correct way to load an existing SQLite DB file?
tried this:
this.sqLiteDatabase = SQLiteDatabase.openDatabase(activity.getPackageResourcePath() + "/raw/foo.db", null, 1);
and tried to load via uri from assets, the outcome is the same - the file was not found, tell me how to do it right

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2017-02-12
@gadfi

you have a fundamentally wrong approach.
How to connect your database to an Android application?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question