android 软件初始加载等待几秒自动进入.

 

代码
new Thread()
{
public void run()
{
try {sleep(3000);     //等待三秒,自动进入软件主窗口            
 Intent intent = new Intent();          
intent.setClass(Main.
this, Grade.class);            
 startActivity(intent);        }          
catch (Exception e) {          e.printStackTrace();          }        
  
//progressDialog.dismiss();         
 }       
 }.start(); 

 

 

posted @ 2010-05-12 22:29  无崖子  阅读(1477)  评论(0编辑  收藏  举报