Created
June 3, 2012 09:56
-
-
Save kojiokb/2862862 to your computer and use it in GitHub Desktop.
スプラッシュ画面を表示する方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SplashActivity extends Activity { | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.splash); | |
Handler handler = new Handler() { | |
@Override | |
public void handleMessage(Message msg) { | |
Intent intent = new Intent(getApplicationContext(), MainActivity.class); | |
startActivity(intent); | |
finish(); | |
} | |
}; | |
handler.sendEmptyMessageDelayed(0, 3000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment