Displaying a ProgressDialog while waiting for a joined Thread
问题 In my Activity, I load the content for a list from a DB, and want to display a ProgressDialog while it´s loading. I got both working on it´s own, but if I load the data in a thread (which I should do?), the list is displayed before it´s data is loaded. But if I use join, the ProgressDialog doesnt even appear. How can I combine this? Or is this not possible at all with threads? (AsyncTask maybe?) Here´s the code for reference: final ProgressDialog progressD=ProgressDialog.show