第一个界面打开,3秒后关闭打开另外一个界面
**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**/**
Thread timer=new Thread(){
//在run函数里面等待3秒钟后跳转public void run(){
//wait 3 seconds
try {//异常抛出
sleep(2000);
} catch (InterruptedException e) {
// TODO: handle exception
e.printStackTrace();
}finally{
//start Mainactivity Intent组件传递信息
Intent openLogin=new Intent("android.intent.action.Login");
startActivity(openLogin);
}
}
};
timer.start();
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
finish();
}