Im trying to get my progressbar to update while I loop over
an array and insert data into a SQLite table.
Problem is that the progress only updates after all the
records are done inserting. The code is really simple too,
all I do is a for loop and pass the current index to the
progressbar. Looks like this.....
Use SQLConnection.openAsync(). Then any operation you perform
will happen asynchronously. Though this means you will have to
listen for Result events on each insert and in that event handler
you can call setProgress.