0

Are there any ways to determine if the incoming call is roaming whether regional, national, or international? I'm using libphonenumber to handle some of my call cases but I don't know if it can solve my problem as there is no documentation too.

Mr. Nacho
  • 315
  • 1
  • 3
  • 13

1 Answers1

0

Use the method isNetworkRoaming():

private final TelephonyManagertelephonyManager = (TelephonyManager) yourContext.getSystemService(Context.TELEPHONY_SERVICE);

telephonyManager.isNetworkRoaming()
Tomás Rodrigues
  • 519
  • 2
  • 17