android默认页面几秒后自动跳转另一页面

super.onCreate(paramBundle);
  setContentView(R.layout.splash_screen_view);
  final Intent localIntent=new Intent(this,Main.class);
  Timer timer=new Timer();
  TimerTask tast=new TimerTask()
  {
   @Override
   public void run(){
    startActivity(localIntent);
   }
  };
  timer.schedule(tast,DELAY);
posted @ 2011-03-04 16:26  子午  阅读(9697)  评论(0编辑  收藏  举报