【发布时间】:2013-10-09 02:39:44
【问题描述】:
您好,我想先显示加载或进度对话框 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();
}
【问题讨论】:
-
这个已经回答了很多次了:stackoverflow.com/a/6159735/2045570