android - How many cursor we can open in sqlite database? -
i have database single table .table contains around 7000 rows , 3 columns including primary key.
when use cursor operation blocking ui.
you can refer these questions .
now due , in situation try out new thing if possible.
i want clarification if possible or not .
question : can use more 1 cursor read data database.
for example 7 cursor , each can read 1000 rows table , meanwhile show progress dialog .
so complete database operation when user not using ui .
let me know can done . if provide code snippet , best.
thank time .
multiple cursors should not done, programming nightmare manage. if cursor locking ui should run database query within asynctask, http://www.vogella.com/articles/androidbackgroundprocessing/article.html asynctask.
any tasks take long time complete, should done on separate thread such asynctask otherwise user presented anr (application not responding).
Comments
Post a Comment