Back to project page SpeechWriter.
The source code is released under:
MIT License
If you think the Android project SpeechWriter 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 edu.psu.rcy5017.speechwriter.activity; //from w w w . j a va2s . c o m import edu.psu.rcy5017.speechwriter.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.Window; public class SplashScreenActivity extends Activity { private static final String TAG = "SplashScreenActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Remove title bar. this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_splash); Log.d(TAG, "Splash activity started"); final int SPLASH_TIME_OUT = 1500; new Handler().postDelayed(new Runnable() { /* * Showing splash screen with a timer. This will be useful when you * want to show case your app logo / company */ @Override public void run() { // This method will be executed once the timer is over // Start app main activity Intent i = new Intent(SplashScreenActivity.this, SpeechListActivity.class); startActivity(i); // close this activity finish(); } }, SPLASH_TIME_OUT); } }