ProgressDialog not shown in UIThread
问题 I'm creating a map using the google api lib. Because the mapwidget takes a long time to load I'm trying to add a loading notification, but it isn't shown. I can show the progressDialog in regular threads though. How come this dialog isn't shown? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); progressDialog = ProgressDialog.show(this, "Please Wait", "Map = loading",false,true); //setContentView(R.layout.map); runOnUiThread(new Runnable(){ public void run(