Beispiel #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   Log.d(TAG, "onCreate");
   int diff = getIntent().getIntExtra(KEY_DIFFICULTY, DIFFUCULTY_EASY);
   //		puzzle = getPuzzle(diff);
   //		calculateUsedTiles();
   puzzleView = new PuzzleView(this);
   setContentView(puzzleView);
   puzzleView.requestFocus();
 }
Beispiel #2
0
 /** Return the chosen tile to the caller */
 private void returnResult(int tile) {
   puzzleView.setSelectedTile(tile);
   dismiss();
 }