Android Open Source - my_training Sudoku Activity






From Project

Back to project page my_training.

License

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.

Java Source Code

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;
  }

}




Java Source Code List

com.example.findpi.FindPIActivity.java
com.example.numberscalculator.NumbersCalculator.java
com.example.sudoku.SudokuActivity.java
com.example.sudoku.SudokuAdapter.java