Back to project page mtgtools.
The source code is released under:
GNU General Public License
If you think the Android project mtgtools 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 pe.apiconz.apps.mtgtools; /* w w w . ja va 2 s . co m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MenuActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_menu); Button imgBtnCardList = (Button) findViewById(R.id.imgBtnCardList); Button imgBtnDice = (Button) findViewById(R.id.imgBtnDice); imgBtnCardList.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i; i = new Intent(getBaseContext(), CardListActivity.class); startActivity(i); } }); imgBtnDice.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i; i = new Intent(getBaseContext(), CounterActivity.class); startActivity(i); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }