8

Android PhoneNumberUtils.isWellFormedSmsAddress not working

view full story
linux-howto

http://stackoverflow.com – The following line of code PhoneNumberUtils.isWellFormedSmsAddress(string) is meant to return false if the string is not a suitable number for texting however always seems to return true! any ideas why? Log.d("valid2", Boolean.toString(PhoneNumberUtils.isWellFormedSmsAddress("0"))); Log.d("valid3", Boolean.toString(PhoneNumberUtils.isWellFormedSmsAddress("123"))); Log.d("valid4", Boolean.toString(PhoneNumberUtils.isWellFormedSmsAddress("111111111111111"))); Log.d("valid5", Boolean.toString(PhoneNumberUtils.isWellFormedSmsAddress("87654345676543231456"))); (HowTos)