我的Android应用程序需要对不同的移动国家代码做出不同的反应
它似乎是硬编码到mcc310(美国).我可以TelephonyManager.getSimCountryIso()通过使用资源文件夹来读取此值,res/values-mcc123/但是如何在模拟器中设置此值?
TelephonyManager.getSimCountryIso()
res/values-mcc123/
android mcc mobile-country-code android-emulator
android ×1
android-emulator ×1
mcc ×1
mobile-country-code ×1