[android-developers] Re: How to prematurely stop a long-running SQLite query?

2009-09-27 Thread Broc Seib
Perhaps a Trie data structure? On Sep 27, 2009 2:07 PM, mjc147 westmead...@yahoo.co.uk wrote: That's a nice trick with the indexed column. I thought of something like that with a column I use for ordering. That column only has a few distinct values so I could split the query up on each of those

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and back button. How to restore progress dialog?

2009-09-27 Thread Broc Seib
I have built progress bars where I had a background thread that updated my Activity via callbacks (to do GUI updates in the UI thread). I ended up using a WeakReference object to hold the callback pointer to my Activity. I have made the assumption (right or wrong) that my UI thread may be gone