Here's the log-
Logger connected to: motorola Moto G (5)
--------- beginning of main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (events) Create, isFirst = true **
** Activity (events) Resume **
Error occurred on line: 78 (SQLData)
android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802)
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:845)
at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:132)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:219)
at anywheresoftware.b4a.sql.SQL$CursorWrapper.setPosition(SQL.java:322)
at b4a2.example.sqldata._getresultstatusid(sqldata.java:1425)
at b4a2.example.importexport._createneweventbyimport(importexport.java:514)
at b4a2.example.events._mnuimport_click(events.java:1247)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA$1.run(BA.java:325)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
The relevant code is -
<CODE>
Sub GetResultStatusID(ResultStatusType As String) As Int
Dim C As Cursor
Dim q As String
Dim i As Int = 0
q = "Select * from RaceresultsStatusTypes where Type = '" & ResultStatusType & "'"
C = sqlDatabase.ExecQuery(q)
If C.IsInitialized = True Then
C.Position = 0 ' this is the line it failed on
i = C.GetInt("Id")
End If
C.Close
Return i
End Sub
</CODE>
I know the C.IsInitialized code is not needed, this was one of the unsuccessful things I tried.