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 progressDi
Solution 1:
It is pointless to put up a ProgressDialog
for a MapActivity
because "the mapwidget takes a long time to load", because you have no way to know when the MapView
is done loading, so you have no way to know when to dismiss the dialog. setContentView()
itself should run fairly quickly; the actual loading of the map tiles happens asynchronously.
Note that the time it takes to display a MapView
is mostly dependent upon the Internet connection back to the Google Maps servers. In most cases, it does not take particularly long, certainly not long enough to warrant a ProgressDialog
.
Post a Comment for "ProgressDialog Not Shown In UIThread"