My application fetches some html code from the internet and when done , displays it on the devices screen. Since it takes about 3-4 seconds to do that , in this time the scr
Create a UI thread after completing network operation
runOnUiThread(new Runnable() { @Override public void run() { progressDialog.dismiss(); } });