Advertisement
rootUser

launch new intent after some time

Mar 5th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.33 KB | None | 0 0
  1.         new Handler().postDelayed(new Runnable() {
  2.             @Override
  3.             public void run() {
  4.                 final Intent mainIntent = new Intent(MainActivity.this, Main2Activity.class);
  5.                 MainActivity.this.startActivity(mainIntent);
  6.                 MainActivity.this.finish();
  7.             }
  8.         }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement