Any android API to normalize phone number

Is there an API in Android that normalizes phone numbers? for example, when I look at a phone number, sometimes 2223334444 happens several times, this is +2223334444

Thanks.

+4
source share
3 answers

Android has a dedicated class for this purpose:

android.telephony.PhoneNumberUtils

+3
source

As long as it is not part of Android, you can check out Google libphonenumber .

+1
source

Source: https://habr.com/ru/post/1336230/


All Articles