0

I have refered this Validation for a cell number in Android, A comprehensive regex for phone number validation and check mobile number valid or not through country code links but I could not find that how can I validate a number if I have country code.

If anyone has any idea about it then please help me.

Thanks.

Aayush Goyal
  • 391
  • 1
  • 8
  • 21
ADT
  • 255
  • 1
  • 4
  • 14
  • Refer below link.... https://stackoverflow.com/questions/37765271/validate-mobile-number-with-the-country-code/44734401#44734401 – Vishal Vaishnav Jun 24 '17 at 09:03

1 Answers1

1

I solved my problem using libphonenumber lib from Google.

Refer to this link https://code.google.com/p/libphonenumber/wiki/HowToRunJavaDemo

Hope this will help someone else. :)

Aayush Goyal
  • 391
  • 1
  • 8
  • 21
ADT
  • 255
  • 1
  • 4
  • 14