2020 working sulotion:
TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); //important!!
phoneNumberTextView.setText(PhoneNumberUtils.formatNumber("3473214567", countryIso));