Skip to content

Instantly share code, notes, and snippets.

@maltzsama
Created April 16, 2013 13:54
Show Gist options
  • Select an option

  • Save maltzsama/5396071 to your computer and use it in GitHub Desktop.

Select an option

Save maltzsama/5396071 to your computer and use it in GitHub Desktop.
android sqlite with transaction
db.beginTransaction();
try {
//Função de inserção.
saveTest();
db.setTransactionSuccessful();
}catch {
//Alguma falha da transação
}finally {
db.endTransaction();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment