Import android. app. activity; import android. content. intent; import android. OS. bundle; import android. OS. handler; import android. view. window; import android. view. animation. alphaanimation; import android. view. animation. animationset; import android. widget. imageview; public class welcomeactivity extends activity {private final int splash_display_lenght = 3000; // three seconds delayed @ overrideprotected void oncreate (bundle savedinstancestate) {super. oncreate (savedinstancestate); // remove titlerequestwindowfeature (window. feature_no_title); setcontentview (R. layout. welcome); imageview image = (imageview) findviewbyid (R. id. image); animationset = new animationset (true); alphaanimation = new alphaanimation (1, 0); alphaanimation. setduration (5500); animationset. addanimation (alphaanimation); image. startanimation (animationset); new handler (). postdelayed (New runnable () {@ override public void run () {// mainactivity is the intent mainintent = new intent (welcomeactivity. this, mainactivity. class); welcomeactivity. this. startactivity (mainintent); welcomeactivity. this. finish () ;}, splash_display_lenght );}}