I'm making an Android quiz and one activity stores every question. Now the score displays on that activity and I would like it if it that score goes to a new activity.. and displays..
code in the quiz:
Intent theIntent = new Intent(this, Score.class);
theIntent.putExtra("somename", score);
startActivity(theIntent);
code in the score:
int i = getIntent().getIntExtra("somename");
I get an error on this word.. "getIntExtra" above in the score activity