Showing Loading Screen?
I want to show a loading screen while my doubles, longitude and latitude, are 0. Currently, my dialog doesn't even show, and an error comes: while(awesome.longitude == 0 &&
Solution 1:
The proper way is to show the dialog initially and as soon as you get the value of those variables then dismiss the progress dialog.
ProgressDialog pd;
if(awesome.longitude == 0 && awesome.latitude == 0){
pd = newProgressDialog(//context here);
pd.setMessage("Loading...")
pd.show();
}
And as soon as you get the value of those variables -
pd.dismiss();
Post a Comment for "Showing Loading Screen?"