我需要在屏幕上显示此消息3秒钟,并且进程在后台运行非常重要。谢谢
@Override
protected void onPreExecute() {
pDialog = new ProgressDialog(getActivity());
pDialog.setMessage(getText(R.string.wait));
pDialog.setIndeterminate(true);
pDialog.setCancelable(false);
pDialog.show();
}