I am trying to find if two phone numbers are same or not (Two same phone number may not be in same format , as +11234567890 is same as 1234567890 and 0011234567890)
I tried PhoneNumberUtils.Compare like this:
if(PhoneNumberUtils.compare("+11234567890", "34567890"))
{
Toast.makeText(getApplicationContext(), "Are same", Toast.LENGTH_LONG).show();
}
But it returns true for "+11234567890", "34567890" while they are not same.
Is there any better method to do this?