I am wondering how to convert an edittext input to an int, I have the user input a number, it than divides it by 8.
MainActivity.java
@SuppressWarnin
Try this,
EditText x = (EditText) findViewById(R.id.editText1); int n = Integer.parseInt(x.getText().toString());