嗨,我想在按钮执行其他任何操作之前先显示加载或进度对话框 1 秒钟......请帮助
button1 = (Button) findViewById(R.id.button1);
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
<!-- want to a Show a Loading or Progress Dailog for 1 Second -->
if (isInternetPresent) {
// Internet Connection is Present
} else {
// Internet connection is not present
InternetNotContectedAlert();
}