I can´t figure out why this Integer.parseInt makes an exception, its a NullpointerException..
try
{
int numberOfPictures = Integer.parseInt(editTextNumberOfGames
.getText().toString());
Toast toast =Toast.makeText(getBaseContext(), "ratt", Toast.LENGTH_SHORT);
toast.show();
} catch (Exception e)
{
Toast toast =Toast.makeText(getBaseContext(), "fel", Toast.LENGTH_SHORT);
toast.show();
}