title: Android NumberFormatException error with a simple number input from EditText
body: <p>So I have a simple Edit-text with number input.
  User enters his phone number and it is saved into DB obviously that is the goal.
  now every time i do </p>
  
  <pre><code>int contactNumber=Integer.parseInt(mContactNumber.getText().toString());
  </code></pre>
  
  <p>I get an error thrown saying NumberFormatException for some reason it doesn't like a string of number. I have made sure that mContactNumber field in the android input field has the </p>
  
  <pre><code>android:input="number"
  </code></pre>
  
  <p>now i also tried  just to be sure</p>
  
  <pre><code>int contactNumber=Integer.parseInt(mContactNumber.getText().toString().trim());
  </code></pre>
  
  <p>still the same error</p>
  
  <p>Guys any ideas?</p>