Reputation: 19723
I have created a SQLite database on my PC. I have imported it into my assets folder in the project directory. How do I access it from my Android application?
Upvotes: 5
Views: 775
Reputation: 1006614
Copy it into your database directory (getDatabasePath()
) using Java I/O. At that point, you can use it like a normal database. It is impossible to use it from within the assets themselves.
Upvotes: 7