I am getting all phone numbers from contact. Then i have checked all numbers using PhoneUtil.parse() method to get the number type. But it gets exception when the phone number is not saved with country code. For example the phone number is like 9876512343 or 09876512343
its an indian number. For this number I am getting parsing exception. If I am doing like this
PhoneNumber numberProto = phoneUtil.parse(phoneNumber, "IN");
then its not a problem for that number. But how can i know that number is an indian number, so that i can pass IN in that argument. So if I can get the country code of a given phone number(String) then it can solve my problem.