Created
October 15, 2012 12:32
-
-
Save gitssk/3892219 to your computer and use it in GitHub Desktop.
Android - Time based Activity Change - 1
This file contains hidden or 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 void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
Handler handler = new Handler(); | |
handler.postDelayed(new Runnable() { | |
public void run() { | |
finish(); | |
Intent intent = new Intent(MainActivity.this, MenuActivity.class); | |
MainActivity.this.startActivity(intent); | |
} | |
}, 2000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment