I used android:inputType = "phone" to take phone number as input, but if i give six digits it takes otherwise force close and fires the error that
“NumberFormat exception not valid int value”
Actually i’m trying to convert that value to integer through:
phone = Integer.parseInt(phoneNumber.getText().toString());
Phone number constist of around 10 digits how can you convert it to int. Just convert it to long.