Questions tagged [phonenumberutils]

24 questions
0
votes
1 answer

PhoneNumberUtils Change Number Format

I am PhoneNumberUtil to see phone numbers i enter into a text view and then send them a message. However it does not work as my Numbers are Formated with a '+44 ...' whereas PhoneNumberUtils needs numbers to be written like '44...'. Does anyone know…
user14551921
0
votes
1 answer

How to get PhoneNumberUtil to recognize arrays?

I have a list of contacts in a recyclerview with phone numbers. I want PhoneNumberUtil (libphonenumber) to tell me whether one of those contacts is calling by comparing the incoming number with numbers in the list. At the moment, this works only…
Code Poet
  • 6,222
  • 2
  • 29
  • 50
0
votes
1 answer

Verify phone number using PhoneNumbers.dll with C#, Visual studio 2010

I am trying to verify phone number using PhoneNumbers.dll(File version 8.9.0.0) for twillio SMS API with C# (Visual studio 2010) Lines of Code used in application: private static PhoneNumberUtil phoneUtil = PhoneNumberUtil.GetInstance(); private…
0
votes
2 answers

Getting the Wrong Mobile Prefix in Android

I am making an app where I will get user's complete phone number from the sim - including the country and mobile prefixes. The phone number I have is 061555555, so when I save it to server it should look like this: +38761555555. And here is my…
Banana
  • 2,435
  • 7
  • 34
  • 60
0
votes
1 answer

How to format phone number to national format without national prefix using PhoneNumberUtils library?

I'm trying to format a previously E164 formatted phone number into National format without the National Prefix number, I'm using PhoneNumberUtils to do it: public static String getNationalPhone(String phoneE164Formatted) { PhoneNumberUtil…
crit_
  • 33
  • 8
0
votes
1 answer

Write Multiple Phone Number comma separated in US format

I want to write the Phone number in US format with comma separated in edit text can anyone help me out in this case I need to like phone number XXX-XXX-XXXX,XXX-XXX-XXXX and so on there can be multiple numbers.
0
votes
1 answer

PhoneNumberUtils.isGlobalPhoneNumber not returning proper results

I have an EditText defined in layout xml like this:
Devarshi
  • 16,440
  • 13
  • 72
  • 125
0
votes
1 answer

PhoneNumberUtils.isGlobalPhoneNumber not working correctly

I passed '55' to isGlobalPhoneNumber, and it returns 'true'. I want it only return true for US phone numbers xxx-xxx-xxxxx.
user73554
  • 93
  • 1
  • 9
0
votes
1 answer

Set EditText to have phone number values set

I have been trying to have my editText accept phone values only as well as extensions. I managed to do this in its xml phone using. android:inputType="phone" android:digits="0123456789()- x" Now the other problem I have been attempting to figure…
1
2