In my application, I have a editText which will accept phone number from the user, My target is, as soon as user enters the phone number it should be formatted (Like by appl
You can use foolowing code it will work.
String number="5129892680"; String formattedNumber = PhoneNumberUtils.formatNumber(number);