Back to project page my_training.
The source code is released under:
GNU Lesser General Public License
If you think the Android project my_training 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.sudoku; /*from w w w. j a v a 2s .c om*/ import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.GridView; public class SudokuActivity extends Activity { private SudokuAdapter mAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sudoku); GridView field = (GridView) findViewById(R.id.gameField); mAdapter = new SudokuAdapter(this); field.setAdapter(mAdapter); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.sudoku, menu); return true; } }