阅读背景:

如何在启动画面中以编程方式旋转图像而不是使用进度条?

来源:互联网 
public class SplashScreen extends Activity {
private static int SPLASH_TIME_OUT = 30000;


@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash);

    new Handler().postDelayed(new Runnable() {

        @Override
        public void run() {
            // This method will be executed once the timer is over
            // Start your app main activity
            Intent i = new Intent(SplashScreen.this, MainActivity.class);
            startActivity(i);

            // close this activity
            finish();
        }
    }, SPLASH_TIME_OUT);
}
public class SplashScreen extends Activity {
pr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: