I\'m trying to catch an \"android.database.sqlite.SQLiteException: error code 5: database is locked\" exception with:
try { db.insert(\"mytable\"
The exception is probably thrown when you open the database, not when you insert a new row.