Android Open Source - Space.Sprint Game Activity






From Project

Back to project page Space.Sprint.

License

The source code is released under:

GNU General Public License

If you think the Android project Space.Sprint 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 com.obisapps.spacerun;
//from   w w w  .  j  ava  2 s  .  com

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

public class GameActivity extends Activity {
  
  //private static final String TAG = GameActivity.class.getSimpleName();
  
   HighScoreDBAdapter dbHelper;

  @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        
        
        requestWindowFeature(Window.FEATURE_NO_TITLE);
 
        GameView gameView = new GameView(this);
        
        this.setContentView(gameView);
        
        //Log.d(TAG, "View Added");
              
    }
  
  @Override
  protected void onResume() {
    
    super.onResume();

    
  }
  
    @Override
    protected void onDestroy() {
      //Log.d(TAG, "DESTROY");
         super.onDestroy();
               
      this.finish();
      
      System.exit(0);
            
    }
    
    @Override
    protected void onPause() {
      
      super.onPause();
      
      this.finish();
      
      System.exit(0);
      
    }
 
    @Override
    protected void onStop() {
      
      //Log.d(TAG, "STOPPING");
      super.onStop();
      
      this.finish();
      
      System.exit(0);
      
    }
    
}




Java Source Code List

com.obisapps.spacerun.GameActivity.java
com.obisapps.spacerun.GameEngine.java
com.obisapps.spacerun.GameView.java
com.obisapps.spacerun.HighScoreDBAdapter.java
com.obisapps.spacerun.HighScoreDatabaseHelper.java
com.obisapps.spacerun.LevelCharacter.java
com.obisapps.spacerun.PhysicsEngine.java
com.obisapps.spacerun.PickUpManager.java
com.obisapps.spacerun.PlayerCharacter.java
com.obisapps.spacerun.RenderThread.java
com.obisapps.spacerun.SoundManager.java
com.obisapps.spacerun.SpaceBackground.java
com.obisapps.spacerun.SpaceSprint.java