2017-08-20 10 views

答えて

0

Android用FirebaseにあるPhoneNumberUtilsクラスの内部メソッドを使用できます。

TelephonyManager tm = (TelephonyManager)getActivity().getSystemService(getActivity().TELEPHONY_SERVICE); 
String countryCodeValue = tm.getNetworkCountryIso(); 
Log.d(TAG, "Countrycode: " + PhoneNumberUtils.getCountryCode(countryCodeValue)); 
関連する問題