Open a SQLite Database

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Open a SQLite Database

Postby scuba » Wed Nov 11, 2009 7:00 pm

All this searching is giving me a headache...

I can see how to create then open a database, there's loads of examples for that. But I already have my database and I just want to know how to open it from my resources. I put in in /res/raw/database.sqlite.

So I have the line:
SQLiteDatabase db = SQLiteDatabase.openDatabase(PATH_HERE, null, SQLiteDatabase.OPEN_READONLY);

But I don't know what to put for the path.

Any help would be appreciated, thanks!
Junior Developer
Junior Developer
Posts: 19
Joined: Wed Nov 11, 2009 4:19 am


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests