Open top menu

                                  Android-Splash Screen

try this code...


SplashActivity.java
...................................................................................................................................................................

package com.example.androidbeginnerpoint;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreen extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_screen);
new Handler().postDelayed(new Runnable() {

public void run() {
Intent intent = new Intent(SplashScreen.this,MainActivity.class);                  
startActivity(intent);
       finish();
overridePendingTransition(R.anim.slide_in_right,R.anim.stay);

}
}, 3000);


}
}

Tagged

0 comments