app/src/main/java/fr/neamar/kiss/dataprovider/ContactsProvider.java
/**
     * Find a ContactsPojo from a phoneNumber
     * If many contacts match, the one most often contacted will be returned
     *
     * @param phoneNumber phone number to find (will be normalized)
     * @return a contactpojo, or null.
     */
Find a ContactsPojo from a phoneNumber
If many contacts match, the one most often contacted will be returned

@param phoneNumber phone number to find (will be normalized)
@return a contactpojo, or null.
Find a ContactsPojo from a phoneNumber If many contacts match the one most often contacted will be returned @param phoneNumber phone number to find ( will be normalized ) @return a contactpojo or null .
public ContactsPojo findByPhone(String phoneNumber) {
        StringNormalizer.Result simplifiedPhoneNumber = PhoneNormalizer.simplifyPhoneNumber(phoneNumber);
        for (ContactsPojo pojo : pojos) {
            if (pojo.normalizedPhone.equals(simplifiedPhoneNumber)) {
                return pojo;
            }
        }
        return null;
    }
public ContactsPojo findByPhone ( String phoneNumber ) { StringNormalizer . Result simplifiedPhoneNumber = PhoneNormalizer . simplifyPhoneNumber ( phoneNumber ) ; for ( ContactsPojo pojo : pojos ) { if ( pojo . normalizedPhone . equals ( simplifiedPhoneNumber ) ) { return pojo ; } } return null ; }
Find a ContactsPojo from a phoneNumber
 If many contacts match, the one most often contacted will be returned
Find a ContactsPojo from a phoneNumber If many contacts match the one most often contacted will be returned