How to modify storage of sqlite data file, to a SD card

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

How to modify storage of sqlite data file, to a SD card

Postby liaowg » Tue Dec 02, 2008 11:13 am

I try to give a path in sqliteopen, but fail with logcat: java.lang.IllegalArgumentException: File //...db contains a path separator

I find the ApplicationContext.makeFilename throw the exception, while change the android framework code, it fail in further JNI code

I'm depressed。

would anyone kindly enough to give me a hand
liaowg
Junior Developer
Junior Developer
 
Posts: 12
Joined: Tue Jun 03, 2008 7:26 am

Top

got it

Postby liaowg » Wed Dec 03, 2008 3:46 am

SQLiteOpenHelper not working

following code OK
SQLiteDatabase db = SQLiteDatabase.openDatabase(DATABASE_SD, null, SQLiteDatabase.OPEN_READWRITE);
liaowg
Junior Developer
Junior Developer
 
Posts: 12
Joined: Tue Jun 03, 2008 7:26 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 5 guests