My application forced closed when I try to convert the editText String to integer and I don't know why. I think i'm converting it right. What supposed to be the problem? Thanks in advance.
edX = (EditText) findViewById (R.id.dh);
path.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
String holder = edX.getText().toString();
int a = Integer.parseInt(holder);
Toast.makeText(getApplicationContext(), a, Toast.LENGTH_SHORT).show();
}
});