How to format and unformat phone number in android
<p>Im doing an application in android which needs to enter phone number in formatted way like <code>(xxx)xxx-xxx-x</code>.</p>

<p>I used code as</p>

<pre><code>EditText inputField = (EditText) findViewById(R.id.inputfield);
inputField.addTextChangedListener(new PhoneNumberFormattingTextWatcher()); 
</code></pre>

<p>Its working well.But when i click a button.,i need to get that phone number in normal format like <code>xxxxxxxxxx</code>.How could i do that?
Thanks.</p>
