SQLite inserts timing out in Android? -


during oncreate() i'm trying insert 20 rows sqlite database (these test values. final version i'll have insert 1000).

using debugger appears when running oncreate() causes "activity pause timeout historyrecord", , seems log not rows inserted.

is using asyncronous task way make work without timeout?

thanks

yes asyncronous task or in separate thread right way, additionally can tell db starting transaction speeds process large inserts,

dh.getdb().begintransaction();

//insert statemetns

dh.getdb().settransactionsuccessful();
dh.getdb().endtransaction();


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -