🌍 Overview
RYDialCode is a fully offline country utility extension that allows your app to:
●Detect the device’s Country ISO code
●Get the international dialing code for that country
●Generate the country flag emoji
●Support 240+ countries worldwide
●Work without internet
🔧 Available Blocks
GetCountryISO : Return Current Country ISO

GetDialCodeByISO : Returns the international dialing code for a given ISO country code
GetFlagEmojiByISO :
Generates the Unicode flag emoji from a 2-letter ISO country code
GetAllISOCountries :
Returns all ISO country codes supported by Android
Extension :
RYDialCode.aix (12.1 KB)
Demo Blocks
✅ Key Features
Fully Offline
Fast & Lightweight
SIM / Network based country detection
Locale fallback support
Unicode Flag Emoji support
240+ ISO countries
Automatically shows correct flag and dial code
Works worldwide
No internet required
🔐 Permissions
❌ No extra permissions required
(TelephonyManager is used safely with fallback handling)
⚠️ Important Notes
🔸 Shared Dial Codes
Some countries share the same dial code:
USA, Canada, Jamaica → +1
This is normal and correct behavior.
🔸 Dual SIM / Manual Region
If the device region is manually changed,
the ISO code may reflect that region.
🔸 No SIM Scenario
If no SIM is available:
System locale is used
Safe fallback mechanism
TIMAI2
2
More or less already previously done here:
1 Like