android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 776) ################################################################# Error Code : 776 (SQLITE_READONLY_ROLLBACK) Caused By : Failed to execute ROLLBACK due to Database file was Read-Only (attempt to write a readonly database (code 776)) ################################################################# at android.database.sqlite.SQLiteConnection.nativeExecuteForLong(Native Method) at android.database.sqlite.SQLiteConnection.executeForLong(SQLiteConnection.java:728) 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:845) at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:833) at android.database.sqlite.SQLiteDatabase.getVersion(SQLiteDatabase.java:1019) 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:290) at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:219) at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:235) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7325) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)