SplashActivity.java
780 Bytes
package com.example.test;
import android.app.Activity;
import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ImageView;
import java.io.InputStream;
public class SplashActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
try {
Thread.sleep(3000); //대기 초 설정
startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();
} catch (Exception e) {
e.printStackTrace();
}
}
}