Android Open Source - ARGiE Splash Activity






From Project

Back to project page ARGiE.

License

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.

Java Source Code

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.
  }

}




Java Source Code List

android.UnusedStub.java
headrick.brandon.activities.AboutScreenActivity.java
headrick.brandon.activities.CreateGameActivity.java
headrick.brandon.activities.EditQuestActivity.java
headrick.brandon.activities.GameChooserActivity.java
headrick.brandon.activities.GameOptionsActivity.java
headrick.brandon.activities.RunGameActivity.java
headrick.brandon.activities.SettingsActivity.java
headrick.brandon.activities.SplashActivity.java
headrick.brandon.activities.TitleScreenActivity.java
headrick.brandon.gamedata.Constants.java
headrick.brandon.gamedata.GameSettingsState.java
headrick.brandon.gamedata.GameState.java
headrick.brandon.models.BaseGame.java
headrick.brandon.models.QuestNode.java
headrick.brandon.models.WaypointGame.java
headrick.brandon.utilities.DBReadWrite.java
headrick.brandon.utilities.DBTest.java
headrick.brandon.utilities.DatabaseHandler.java
headrick.brandon.utilities.MapHelper.java