What is a well formed sms address?
I am doing this in my code:
if (StringUtils.isNotBlank(mPhone) && !PhoneNumberUtils.isWellFormedSmsAddress(mPhone)) {
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setTitle(getString(R.string.cellphone_error));
alertDialog.setMessage(getString(R.string.cellphone_error_hint));
alertDialog.show();
return;
}
However, I can't seem to input any set of numbers to activate this code. For some reason, everything seems to qualify as a well formed sms address. How does this error check work?
Should I just use isGlobalPhoneNumber
instead?