SQLite on Samsung Galaxy S2 GT-i9100 (Android OS 4.0.3)-Collection of common programming errors
We have one live application which uses SQLite to store application information. Now this application is running on all OS on all phones but one particular phone model Samsung Galaxy S2 GT-i9100.
Code – At start of splash screen ( home screen ) We connect to database from SQLite. On every device it works like charm but only fails on above device.
Below is stack trace when we debug on device. Tried to search on stackoverflow or internet but didn’t find any solution.
Anyone knows if this is a known bug?
I/SqliteDatabaseCpp( 6390): sqlite returned: error code = 14, msg = cannot open file at line 27827 of [ed759d5a9e], db=xxx
I/SqliteDatabaseCpp( 6390): sqlite returned: error code = 14, msg = os_unix.c: open() at line 27827 - "" errno=2 path=/data/data/com.XXX.XXX/databases/XXX, db=xxx
E/SqliteDatabaseCpp( 6390): sqlite3_open_v2("/data/data/com.XXX.XXX/databases/cff", &handle, 2, NULL) failed
E/SQLiteDatabase( 6390): Failed to open the database. closing it.
E/SQLiteDatabase( 6390): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file
E/SQLiteDatabase( 6390): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
E/SQLiteDatabase( 6390): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1129)
E/SQLiteDatabase( 6390): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1081)
E/SQLiteDatabase( 6390): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1057)
E/SQLiteDatabase( 6390): at com.a.a.b.a(Unknown Source)
E/SQLiteDatabase( 6390): at com.a.a.b.a(Unknown Source)
E/SQLiteDatabase( 6390): at com.a.a.b.getWritableDatabase(Unknown Source)
Samsung Galaxy S2 4.0.3
GTi9100