Hi, I know that this is common problem, but still I cannot find the answer...
I have two classes: InternetConnection extends Activity ConnectionChangeReceiver extends BroadcastReceiver >From ConnectionChangeReceiver I'm calling InternetConnection method which is refreshing UI when Internet connection is changed. The problem is that during refresh operation I'd like to show ProgressDialog which actually is never visible !! So broadcast class looks like: public class ConnectionChangeReceiver extends BroadcastReceiver { private InternetConnection internetConnection; @Override public void onReceive(Context context, Intent intent) { mRefreshingDialog = ProgressDialog.show(TimeCard.this, "", msg, true); new Thread() { public void run() { login(mResult); mHandler.post(new Runnable() { public void run() { /** doing some UI staff ... **/ internetConnection.refreshUI(); mRefreshingDialog.dismiss(); } }); } }.start(); } } Do you know why mRefreshingDialog is not visible ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---