Android Open Source - endlessJourney Endless Activity






From Project

Back to project page endlessJourney.

License

The source code is released under:

GNU General Public License

If you think the Android project endlessJourney 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.kambashi.endlessjourney;
/*ww w  .  ja  v a 2  s  .  c  o  m*/
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.Window;
import android.view.WindowManager;

public class EndlessActivity extends Activity {

  private static final String TAG = EndlessActivity.class.getSimpleName();

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // requesting to turn the title off
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    // making it full screen
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);
    // set our MainGamePanel as the View
    setContentView(new MainGamePanel(this));
    Log.d(TAG, "View added");
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.endless, menu);
    return true;
  }

  @Override
  protected void onDestroy() {
    Log.d(TAG, "Destroying...");
    super.onDestroy();
  }

  @Override
  protected void onStop() {
    Log.d(TAG, "Stopping...");
    super.onStop();
  }

}




Java Source Code List

com.kambashi.endlessjourney.EndlessActivity.java
com.kambashi.endlessjourney.MainGamePanel.java
com.kambashi.endlessjourney.MainThread.java
com.kambashi.endlessjourney.model.Bot.java
com.kambashi.endlessjourney.model.components.Speed.java