QuintinZhangQQ / asd

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Need to open MBTiles & SQLite in READ/WRITE for some real devices. #318

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using the emulator, opening a pre-created SQLite file with tiles (e.g. an 
MBTiles data set created with TileMill) works.  However, with a real device (LG 
P500 Android 2.3.3), the SQLite library fails to open with error since it's 
trying to open the database for writing (even though READONLY was specified in 
osmdroid).  Workaround: remove READONLY flag on SQLiteDatabase.openDatabase 
call in MBTilesFileArchive).  Googling this problem reveals that other devices 
show the same symptom, e.g. 
http://stackoverflow.com/questions/4718934/sqlite-issues-with-htc-desire-hd.

Original issue reported on code.google.com by mgwjenk...@gmail.com on 9 Mar 2012 at 8:11

GoogleCodeExporter commented 9 years ago
See also issue 327.

Original comment by neilboyd on 28 Mar 2012 at 3:30