python大数据 2010-10-07
mProgressDlg = ProgressDialog.show(this, "App_Name", "Loading data...", true, false); new Thread(new Runnable(){ public void run() { /*Load Data*/ mProgressDlg.dismiss(); hRefresh.sendEmptyMessage(REFRESH); } }).start(); Handler hRefresh = new Handler(){ @Override public void handleMessage(Message msg) { switch(msg.what){ case REFRESH: /*Refresh UI*/ break; } } };