android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 776) at android.database.sqlite.SQLiteConnection.nativeExecuteForLong(Native Method) at android.database.sqlite.SQLiteConnection.executeForLong(SQLiteConnection.java:674) at android.database.sqlite.SQLiteSession.executeForLong(SQLiteSession.java:652) at android.database.sqlite.SQLiteStatement.simpleQueryForLong(SQLiteStatement.java:107) at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:886) at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:874) at android.database.sqlite.SQLiteDatabase.getVersion(SQLiteDatabase.java:901) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:241) at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187) at com.entitcs.office_attendance.f.a.h(SourceFile) at com.entitcs.office_attendance.model_classes.GPSTracker.v(SourceFile) at com.entitcs.office_attendance.model_classes.GPSTracker.onLocationChanged(SourceFile) at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:374) at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java) at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:242) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:232) at android.app.ActivityThread.main(ActivityThread.java:6806) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1103) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)