For splash screen, just create layout with simple image (If you don't need fancy with animation)
splash_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/image" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textSize="12dp"
android:gravity="center_horizontal"
android:layout_alignParentBottom="true"
android:text="Some Text Here" />
</RelativeLayout>
Inside your SplashScreenActivity.java class, replace the onCreate method with below code.
//Time for which you want to show splash screen
private static int SPLASH_SCREEN_TIME_OUT = 200;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_layout);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);
startActivity(i);
finish();
}
}, SPLASH_SCREEN_TIME_OUT);
}