Handler mHandler;
mHandler=new Handler(){
public void dispatchMessage(android.os.Message msg) {
switch (msg.what) {
case 1:
Intent mIntent=new Intent();
mIntent.setClass(SetPassActivity.this, MainActivity.class);
startActivity(mIntent);
break;
default:
break;
}
};
};
mHandler.sendEmptyMessageDelayed(1, 2000);
handler设置消息延迟操作,布布扣,bubuko.com
原文:http://www.cnblogs.com/xianglong0127/p/3907858.html