Code example for PhoneNumberFormattingTextWatcher

0
        return (EditText) this.findViewById(R.id.editTextId);
    } 
 
    private void setupEditText() { 
        EditText etext = this.getEditText();
        etext.addTextChangedListener(new PhoneNumberFormattingTextWatcher());
    } 
 
    protected void onActivityResult(int requestCode, int resultCode, Intent outputIntent) {
        super.onActivityResult(requestCode, resultCode, outputIntent);
        IntentUtils.parseResult(this, requestCode, resultCode, outputIntent);
    } 
}