This is done the same way as on a real device. Open the seetings app, got to "Language and Input" -> "Language" and select "English (India)"
android : How to set Country code manually in emulator
-
15-01-2022 - |
Question
When i use following code , it always shows the country code as US.
context = MainActivity.this;
String locale = context.getResources().getConfiguration().locale.getCountry();
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.getSimCountryIso();
How can i manually set set country code to IN (india) in emulator.
Solution
OTHER TIPS
Run>Debug Configurations/Run Configurations
Tab Target> Additional Emulator Command Line Options
-timezone Asia/India
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow