On Nov 3, 3:59 pm, Flávio Faria <[email protected]> wrote:
> Hi guys,
>
> I have a ContentProvider in my app that wraps an SQLite database. I'm
> wondering what is the best way to call insert(), update(), delete()
> and query() inside a database transaction. Is it possible? Is there
> any workaround? bulkInsert() doesn't help since it only makes insert()
> calls.
>
> Thanks.

Check out the beginTransaction(), setTransactionSuccessful(), and
endTransaction() methods described at
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html.

- Dave

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to