Database opens just fine in the windows sqlite3.exe application, I can
view the tables.

The full callstack:

12-04 19:51:12.665: I/Database(842): sqlite returned: error code = 8,
msg = prepared statement aborts at 37: [CREATE TABLE IF NOT EXISTS
android_metadata (locale TEXT)]
12-04 19:51:12.665: E/Database(842): CREATE TABLE android_metadata
failed
12-04 19:51:12.795: E/Database(842): Failed to setLocale() when
constructing, closing the database
12-04 19:51:12.795: E/Database(842):
android.database.sqlite.SQLiteException: attempt to write a readonly
database
12-04 19:51:12.795: E/Database(842):    at
android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
12-04 19:51:12.795: E/Database(842):    at
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
1967)
12-04 19:51:12.795: E/Database(842):    at
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:
1835)
12-04 19:51:12.795: E/Database(842):    at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
820)
12-04 19:51:12.795: E/Database(842):    at
com.mg.keas.DatabaseHelper.<init>(DatabaseHelper.java:29)
12-04 19:51:12.795: E/Database(842):    at
com.mg.keas.KDEASButtonActivity.onCreate(KDEASButtonActivity.java:28)
12-04 19:51:12.795: E/Database(842):    at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
12-04 19:51:12.795: E/Database(842):    at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1586)
12-04 19:51:12.795: E/Database(842):    at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1638)
12-04 19:51:12.795: E/Database(842):    at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
12-04 19:51:12.795: E/Database(842):    at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:928)
12-04 19:51:12.795: E/Database(842):    at
android.os.Handler.dispatchMessage(Handler.java:99)
12-04 19:51:12.795: E/Database(842):    at
android.os.Looper.loop(Looper.java:123)
12-04 19:51:12.795: E/Database(842):    at
android.app.ActivityThread.main(ActivityThread.java:3647)
12-04 19:51:12.795: E/Database(842):    at
java.lang.reflect.Method.invokeNative(Native Method)
12-04 19:51:12.795: E/Database(842):    at
java.lang.reflect.Method.invoke(Method.java:507)
12-04 19:51:12.795: E/Database(842):    at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
12-04 19:51:12.795: E/Database(842):    at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12-04 19:51:12.795: E/Database(842):    at
dalvik.system.NativeStart.main(Native Method)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to