Closed ffolkes closed 10 years ago
Subsequent attempts result in:
W/dalvikvm( 7929): threadid=1: thread exiting with uncaught exception (group=0x41543ce0)
E/AndroidRuntime( 7929): FATAL EXCEPTION: main
E/AndroidRuntime( 7929): Process: com.af.synapse, PID: 7929
E/AndroidRuntime( 7929): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.af.synapse/com.af.synapse.MainActivity}: android.database.sqlite.SQLiteDoneException
E/AndroidRuntime( 7929): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
E/AndroidRuntime( 7929): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2265)
E/AndroidRuntime( 7929): at android.app.ActivityThread.access$800(ActivityThread.java:145)
E/AndroidRuntime( 7929): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
E/AndroidRuntime( 7929): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 7929): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 7929): at android.app.ActivityThread.main(ActivityThread.java:5081)
E/AndroidRuntime( 7929): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7929): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 7929): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 7929): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
E/AndroidRuntime( 7929): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 7929): Caused by: android.database.sqlite.SQLiteDoneException
E/AndroidRuntime( 7929): at android.database.sqlite.SQLiteConnection.nativeExecuteForString(Native Method)
E/AndroidRuntime( 7929): at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:641)
E/AndroidRuntime( 7929): at android.database.sqlite.SQLiteSession.executeForString(SQLiteSession.java:685)
E/AndroidRuntime( 7929): at android.database.sqlite.SQLiteStatement.simpleQueryForString(SQLiteStatement.java:128)
E/AndroidRuntime( 7929): at com.af.synapse.lib.ActionValueDatabase.getValue(ActionValueDatabase.java:117)
E/AndroidRuntime( 7929): at com.af.synapse.lib.BootService.getFlag(BootService.java:137)
E/AndroidRuntime( 7929): at com.af.synapse.lib.BootService.getBootFlag(BootService.java:143)
E/AndroidRuntime( 7929): at com.af.synapse.MainActivity.continueCreate(MainActivity.java:155)
E/AndroidRuntime( 7929): at com.af.synapse.MainActivity.onCreate(MainActivity.java:118)
E/AndroidRuntime( 7929): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 7929): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 7929): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
E/AndroidRuntime( 7929): ... 11 more
W/ActivityManager( 3632): Force finishing activity com.af.synapse/.MainActivity
It's because I changed the database handler in the preview version I gave you.
Download SQL Debugger, and them open up Synapse's actionValueStore and delete the row of the entry that you added as an element.
It should work again after that. I'll give you a new version later on to avoid this issue.
And btw, encapsulate code in ``` rows to have them monospaced on Github.
Not a big deal, but I figured I'd let you know. I added an element for a sysfs entry that didn't yet exist, and got this: