Guest User

Untitled

a guest
Mar 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. package com.example.welcome.madrastakfromjwwallak
  2.  
  3. import android.support.v7.app.AppCompatActivity
  4. import android.os.Bundle
  5.  
  6. class welcomeScreen : AppCompatActivity() {
  7.  
  8. override fun onCreate(savedInstanceState: Bundle?) {
  9. super.onCreate(savedInstanceState)
  10. setContentView(R.layout.activity_welcome_screen)
  11.  
  12. Thread myThread = new Thread(){
  13.  
  14. public void Run() {
  15. try {
  16.  
  17. sleep(3000);
  18. Intent intent = new Intent(getApplicationContext(), MainActivity.Class);
  19. startActivity(intent);
  20. finish();
  21.  
  22.  
  23. } catch (InterruptedException e) {
  24.  
  25. e.printStackTrace();
  26.  
  27. }
  28.  
  29. }
  30.  
  31. };
  32.  
  33. myThread.start();
  34.  
  35.  
  36. }
  37. }
Add Comment
Please, Sign In to add comment