[android-developers] Re: Show Progressbar while getting records from a cursor

2010-11-13 Thread Bret Foreman
This situation looks tailor made for an AsyncTask, which allows you to manage background and foreground threads with a simple interface. And the docs have a progress bar example that sounds like exactly what you want. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Show Progressbar while getting records from a cursor

2010-11-12 Thread equity
Why don't you create a handler inside of the main activity like this Hander mHandler = new Handler(); Move the anonymous inner Runnable class (which dismisses the dialog) as a named private subclass of the activity called something like HandlerHelper. Then call mHandler.post(new