Use below code that returns value from bundle
public int getScore(){
Bundle bundle = getIntent().getExtras();
return bundle.getInt("scores");
}
and set to textview like:
TextView tView = (TextView)findViewById(R.id.textView);
tView.setText(String.valueOf(getScore()));
Cause You used void
as return type so when you call this methood you didnt get value and the value is in local variable that not accessible out side method. and using String.valueOf(getScore())
you properly convert int to string