Search code examples
androidphone-numbertelephonymanager

Get the country of the incoming call


I am trying to create an app which recognizes the country of the incoming call, is there a way to do this? I was thinking to use the first four characters in the number to determine the country but this seems to be an ineffective approach.


Solution

  • To retrieve incoming call - retrieve-incoming-calls-phone-number-in-android

    Then use the country code - getting-telephone-country-code-with-android

    Then use country code to find country in your map.

    All in all summing up (as mentioned here)-- get-incoming-call-country-name-using-phone-number.