final Timer timer2 = new Timer(true);
TimerTask task = new
TimerTask(){
public
void run() {
timer2.cancel();
finish();
//退出当前程序
}
};
timer2.schedule(task,5000,
5000);
Uri uri = Uri.parse("http://www.dilong.org/m/login.aspx");
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
Button
btn_enter=(Button)findViewById(R.id.btn_enter);//获取进入按钮
Button
btn_exit=(Button)findViewById(R.id.btn_exit);
//退出系统
btn_enter.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View
arg0) {
// TODO Auto-generated method
stub
Uri uri = Uri.parse("http://www.dilong.org/m/login.aspx");
Intent it = new Intent(Intent.ACTION_VIEW,
uri);
startActivity(it);
//进入系统
}
});
btn_exit.setOnClickListener(new
OnClickListener(){
@Override
public void onClick(View v)
{
// TODO Auto-generated method
stub
System.exit(0);
//退出系统
}
});