title: How to do Phone number validation in Android?
body: <p>How to validate phone number in EditText for Android?</p>
  
  <p>I tried using this code:</p>
  
  <pre><code>&lt;EditText
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:inputType="phone"
      android:ems="10"
      android:id="@+id/editText"
     /&gt;
  </code></pre>
  
  <p>But it will not work for special characters. Any help?</p>