Back to project page DoceYDos-android-app-demo.
The source code is released under:
MIT License
If you think the Android project DoceYDos-android-app-demo 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.raiseapps.doceydos; /* ww w. ja v a 2s . co m*/ import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; public class SplashActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash_activity); Thread timer = new Thread(){ public void run(){ try{ sleep(4000); } catch(InterruptedException e){ e.printStackTrace(); } finally{ Intent openStartingPoint = new Intent("com.riseapp.doceydos.MENUINICIAL"); startActivity(openStartingPoint); } } }; timer.start(); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.splash_activity, menu); return true; } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); finish(); } }