android欢迎页源码

时间:2023-11-23 16:30:32

直接上源码:

 import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler; public class Splash extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
new Handler().postDelayed(new Runnable() { @Override
public void run() {
// TODO Auto-generated method stub
Intent it = new Intent(Splash.this, SmallToolsActivity.class);
startActivity(it);
finish();
}
}, 3000);
}
}

==