Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package nl.chalkwebdesign.testproject;
- import android.app.Activity;
- import android.os.Bundle;
- public class Splash extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.splash);
- (new Thread(){
- public void run() {
- try{
- sleep(5000);
- } catch (Exception e) {
- e.printStackTrace();
- }
- finally {
- startActivity(new android.content.Intent("nl.chalkwebdesign.testproject.MAINMENU"));
- }
- }
- }).start();
- }
- }
Add Comment
Please, Sign In to add comment