views:

77

answers:

1

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?

+4  A: 

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.

CommonsWare