androidnumberscontactslibphonenumber

Using LibPhoneNumber google lib in Android


The library libphonenumber doesn't work on Android and the exception says: "Caused by: java.lang.UnsupportedOperationException: CANON_EQ flag not supported"

The description in the webpage says that the lib is for "Smartphones" but Android doesn't support CANON_EQ reg_ex flag..

Am I missing something?


Solution

  • Please try using libphonenumber-2.5.1.jar from the download page:

    http://code.google.com/p/libphonenumber/downloads/list

    The jar from the Right-Number project works because they are using libphonenumber-2.4.jar. The CANON_EQ flag was introduced in v2.5, but is now removed from 2.5.1 to be compatible with Android until it supports the flag.