Android Open Source - TokenTracker Main Activity






From Project

Back to project page TokenTracker.

License

The source code is released under:

GNU General Public License

If you think the Android project TokenTracker 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.ekflagristoj.tokentracker;
/*from  w  w  w .  j a  v a  2  s  . co  m*/
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
  }

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

  public void resetGame( View v ) {
    
  }
  public void spawnPlayer( View v ) {
    Intent intobj = new Intent( MainActivity.this, CreatePlayerActivity.class );
    startActivity( intobj );
  }
  public void newToken( View v ) {
    Intent intobj = new Intent( MainActivity.this, CreateTokenActivity.class );
    startActivity( intobj );
  }
  public void spawnToken( View v ) {
    Intent intobj = new Intent( MainActivity.this, SpawnTokenActivity.class );
    startActivity( intobj );
  }
  public void makeRandom( View v ) {
    Intent intobj = new Intent( MainActivity.this, RandomizerActivity.class );
    startActivity( intobj );
  }
}




Java Source Code List

com.ekflagristoj.tokentracker.CreatePlayerActivity.java
com.ekflagristoj.tokentracker.CreateTokenActivity.java
com.ekflagristoj.tokentracker.MainActivity.java
com.ekflagristoj.tokentracker.RandomizerActivity.java
com.ekflagristoj.tokentracker.SpawnTokenActivity.java
com.ekflagristoj.tokentracker.util.Card.java
com.ekflagristoj.tokentracker.util.DatabaseHelper.java
com.ekflagristoj.tokentracker.util.Player.java
com.ekflagristoj.tokentracker.util.Randomizer.java
com.ekflagristoj.tokentracker.util.TokenDataSource.java
com.ekflagristoj.tokentracker.util.Token.java