Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何方法可以确定来电是否在区域、国家或国际漫游?我libphonenumber用来处理我的一些呼叫案例,但我不知道它是否可以解决我的问题,因为也没有文档。
libphonenumber
使用方法isNetworkRoaming():
private final TelephonyManagertelephonyManager = (TelephonyManager) yourContext.getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.isNetworkRoaming()