android欢迎页源码

直接上源码:

 1 import android.app.Activity;
 2 import android.content.Intent;
 3 import android.os.Bundle;
 4 import android.os.Handler;
 5 
 6 public class Splash extends Activity {
 7     @Override
 8     protected void onCreate(Bundle savedInstanceState) {
 9         // TODO Auto-generated method stub
10         super.onCreate(savedInstanceState);
11         setContentView(R.layout.splash);
12         new Handler().postDelayed(new Runnable() {
13 
14             @Override
15             public void run() {
16                 // TODO Auto-generated method stub
17                 Intent it = new Intent(Splash.this, SmallToolsActivity.class);
18                 startActivity(it);
19                 finish();
20             }
21         }, 3000);
22     }
23 }

 

==

posted @ 2016-01-28 16:01  HuijunZhang  阅读(273)  评论(0编辑  收藏
中国