commit | 8f29c12d6ebfa3ed36e81573448fcbc49a98f514 | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Wed Mar 24 10:20:46 2010 -0700 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Wed Mar 24 13:35:03 2010 -0700 |
tree | df3454f55ef499ada1f6af70f27a7425129589e7 | |
parent | 3ac71b605b9a8fb7432bf98926cb0b3d5551e577 [diff] |
Forcing query execution in SQLiteDatabase.query The issue is that our code often "executes" a query on a background thread but iterates over the cursor on the UI thread. Since we actually do the fetch on moveToFirst or moveToNext, the query is in reality often run on the UI thread and causes an ANR. Change-Id: Ia561135e974a44ad3e3774ecb23c6a3d0fc38176