Maik,
Confusing, isn't it? I believe plenty of people have had the same problem.
libphonenumber doesn't actually seem to have a function to validate a
number - instead everytime you give it a number it performs any
corrections it can unambiguously make and returns to you whether the
outcome of that process is valid. So if you want to validate a number,
you need to perform two steps:
- Check isValidNumber() is true
- Check that when you format the number, what you get out is
identical to what you put in.
If both are true then your number is validated.
Regards,
Chris
Chris Wilson
jak...@gmail.com