SO I am writing a database manager for android, and in this class there will be a method for writing to the table of this database.
SQLiteDatabase db = this.getReadableDatabase(); db.beginTransaction(); try { //DO some db writing db.setTransactionSuccessful(); } finally { db.endTransaction(); }
I understand that this will automatically roll back the data if the transaction is not successful, as it is in an attempt, but how will I catch if it was not successful, so I can notify the user of the successful completion or rollback
erik source share