In the class SQLiteDatabase, add inTransaction() method to check if the ...

...current thread has a transaction pending in the database. In the class SQLDroidConnection, modify the setAutoCommit() to invoke endTransaction() only after checking that inTransaction() is true.  This safe practice is to avoid some intermittent 'database locked' behavior observed from the android.database.sqlite.SQLiteDatabase class in some versions of Android SDK.