Reputation: 315
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.
Upvotes: 0
Views: 454
Reputation: 544
Use the method isNetworkRoaming():
private final TelephonyManagertelephonyManager = (TelephonyManager) yourContext.getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.isNetworkRoaming()
Upvotes: 0