Java tutorial
//package com.java2s; //License from project: Open Source License import android.telephony.PhoneNumberUtils; public class Main { public static boolean comparePhones(String phone1, String phone2) { return PhoneNumberUtils.compare(phone1.trim(), phone2.trim()); } }