This is my code:
boolean startGameBoolean;
Bundle extras = getIntent().getExtras();
extras.getInt(\"startGameBoolean\");
if (startGameBoolean = true){
counte
Bundle extras = getIntent().getExtras();
boolean startGameBoolean = extras.getBoolean("startGameBoolean");
Something like this? You cant fetch boolean
with getInt()
. Perhaps, if you are dealing with int but with values 0
and 1
. Then you should change the type of startGameBoolean
to int
and fetch it with getInt()
, people do this sometimes.