Splash Screen

  Thread timer=new Thread()

        {

            public void run() {

                try {

                    sleep(2000);

                } catch (InterruptedException e) {

                    // TODO Auto-generated catch block

                    e.printStackTrace();

                }

                finally

                {

                    Intent i=new Intent(Splash.this,MainActivity.class);

                    finish();

                    startActivity(i);

                }

            }

        };

        timer.start();

Comments

Popular posts from this blog

Gride View in Firebase

Register in kotlin

Check Permission in Android Studio