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
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
2 matches
Mail list logo