Back to project page ARGiE.
The source code is released under:
MIT License
If you think the Android project ARGiE 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 headrick.brandon.activities; /* w w w . j av a 2 s .c o m*/ import headrick.brandon.R; import android.app.Activity; import android.content.Intent; //import android.content.res.AssetManager; import android.os.Bundle; /** * Provides the Splash (title) Screen for the application. * May remove later. * @author Brandon Headrick * */ public class SplashActivity extends Activity { // MediaPlayer ourSound; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.splash_screen); Thread timer = new Thread(){ @Override public void run(){ try{ sleep(1000); } catch (InterruptedException ie){ ie.printStackTrace(); } Intent intent = new Intent(SplashActivity.this, TitleScreenActivity.class); startActivity(intent); } }; timer.start(); } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); finish(); //finish splash activity, get rid of it, unless they open app again. } }