Android: SQLite content accessing error

Posted by vnshetty on Stack Overflow See other posts from Stack Overflow or by vnshetty
Published on 2011-03-04T07:14:06Z Indexed on 2011/03/04 7:24 UTC
Read the original article Hit count: 194

Filed under:
|

I've following code, it gives run time error as below... why?

try{
String myPath = DB_PATH + DB_NAME;  
mDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
}catch(SQLiteException e){} 

Runtime Error:

:sqlite returned: error code = 1, msg = no such table: android_metadata  
 :SELECT locale FROM android_metadata failed  
 :Failed to setLocale() when constructing, closing the database  
 :android.database.sqlite.SQLiteException: no such table: android_metadata

© Stack Overflow or respective owner

Related posts about android

Related posts about sqlite