Back to project page BoggleGame.
The source code is released under:
MIT License
If you think the Android project BoggleGame 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 com.example.wordboggle; /* w w w . j a v a2 s . c om*/ import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.ImageButton; import android.view.View.OnClickListener; public class MainActivity extends Activity { ImageButton imageButton1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); addListenerOnButton(); } private void addListenerOnButton() { // TODO Auto-generated method stub imageButton1 = (ImageButton) findViewById(R.id.imageButton1); imageButton1.setOnClickListener(new OnClickListener() { public void onClick(View v) { //Intent intent = new Intent(MainActivity.this, PlayActivity.class); Intent intent = new Intent(); intent.setClass(getApplicationContext(), PlayActivity.class); startActivity(intent); } }); } @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; } }