Android Java Help

Edit: FOUND A SOLUTION!

 

I've been following a tutorial from my university to create the game Sudoku, which will then be edited to create a brain training game where you solve an equation for my coursework. I'm very new to android and have got stuck trying to actually start the game. It's probably really easy, but I don't know how to call the class correctly to start the game.

I used: 

Intent j = new Intent(this, Game.class);
startActivity(j);

This gives errors when run in the emulator. I need a way of passing the selected difficulty though to Game.Java and starting the game. Any help will be much appreciated.

I've uploaded my workspace here: http://speedyshare.com/P5wMv/Android.rar

The code that's wrong is in Sudoku.java at the bottom where I've left the comment: //NOT SURE IF THIS IS RIGHT...

 

Here's the code if you can help without opening my workspace:

 http://pastebin.com/uTXUVxMU

//Opens the new game menu to select a difficulty

private void openNewGameDialog() {

new AlertDialog.Builder(this)

.setTitle(R.string.new_game_label)

.setItems(R.array.difficulty,

new DialogInterface.OnClickListener() {

public void onClick(DialogInterface

dialoginterface, int i) {

startGame(i);

 }

})

 .show();

 }

 

//Tries to start game on selected difficulty (although I didn't even use i which is the problem)

private void startGame(int i) {

Log.d(TAG, "clicked on " + i);

// Start game here...

//NOT SURE IF THIS IS RIGHT...

Intent j = new Intent(this, Game.class);

startActivity(j);

}

}

 

Thanks in advance, and sorry for the bad formatting.