When my app runs on S3, it crashes when it contains code to convert String from Textview to int. Here it is:
tv = (TextView) findViewById(R.id.counter_txt);
String txtNum = (String) tv.getText();
Toast.makeText(getApplicationContext(), new Integer(txtNum), Toast.LENGTH_SHORT).show();
The scenario is I put a number on screen, and it increase by one when user clicks. But when I convert the String number to int, it crashes. Someone knows it? Thank you.