Hi all, I have doubts about cursors and sqlite usage in a multi thread environment.
Let's say that I have a background thread that pushes data in the sqlite storage. I read that I can force sqlite to be thread safe by using setLockingEnabled. I am now wondering what happens to a cursor while the data is being changed. For example, if I have a foreground activity that makes the query and uses the resulting cursor to populate a listview, what will happen if the background thead push some data in the db while the foreground activity is populating the view ? And more: I get a cursor as the result of the query. Does it contain the real data or is the data fetched every moveToNext() call? What happens if data is pushed to the db while I am still using the cursor on another thread? Many thanks, Federico -- 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

