0

I want to use my own sqlite3 database in my android project.

I created this database with command-shell line (windows) and exported it with SQLite Database Browser (sql format).

I followed this tutorial and my database can't be open :

go here to see since i can't post image

My package is org.opencv.samples and my DBName is "maif" placed in /assets directory.

So it seems that my exported database is incorrect, can someone helps me ?

2 Answers 2

2

I suggest to use this helper to solve your problems: https://github.com/jgilfelt/android-sqlite-asset-helper

Sign up to request clarification or add additional context in comments.

Comments

-1

I don't believe you can transfer an external database through the file system to Android unless you have a rooted phone. If you have to transfer data you need to use data transfer via HTTP using XML/JSON.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.