I know that there are a lot of posts like this but I read them and my application does not work yet. Im trying to convert TextView parameter into int. I use this:
int MyScore;
TextView score = (TextView) findViewById(R.id.highscore);
MyScore = Integer.parseInt(score.toString());
When im launching the program and rich to the place this should work my program crushing becasue of the last line: MyScore = Integer.parseInt(score.toString());
How can I solve this?