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.
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. :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.