I have seen that since Lollipop, Android has built in Emoji flags for different countries. Is it possible to use the devices locale to retrieve the
Lollipop
Emoji
Based on this answer, I wrote a Kotlin version below using extension function.
I also added some checks to handle unknown country code.
/** * This method is to change the country code like "us" into