Back to project page Phylane.
The source code is released under:
COPYRIGHT 2014 TRISTON JONES
If you think the Android project Phylane listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lvadt.phylane.activity; /*from ww w . j av a2s . c o m*/ import android.os.Bundle; import android.app.Activity; import android.content.Intent; import com.lvadt.phylane.R; //Just a splash screen activity as the app starts public class Splash extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Thread timer = new Thread(){ // To pause on the splash screen for 5s public void run(){ try{ sleep(5000); } catch(InterruptedException e){ e.printStackTrace(); } finally{ //Start the menu intent Intent i = new Intent(Splash.this, MainMenu.class); // Start next activity startActivity(i); } } }; timer.start(); } @Override protected void onPause() { super.onPause(); //End the splash screen activity finish(); } }