Posts

Showing posts from October, 2018
How to create splash screen in Android follow the steps 1. Create a simple empty activity 2. Design your screen activity_splash.xml 3. Add below code in onCreate() method of splash screen java file  getSupportActionBar().hide();  // if your are using AppCompatActivity  new Handler().posrDelayed(new Runnable(){    @override     public void run(){           //put your code that you want execute while splash is showing          startActivity(Splash.this,NextActivity.class);          //change Splash.this with your activity context and NextActivity.class with your  next activity     } },3000); // here 3000 ms is time to hold the screen