Get Country ISO Extension
An simple extension to automatically get ISO of user's country.
Blocks

Open Source
Download
Direct Download : xyz.nisarga.GetCountry.aix (6.8 KB)
An simple extension to automatically get ISO of user's country.

Direct Download : xyz.nisarga.GetCountry.aix (6.8 KB)
Your code contains lots of unnecessary imports.
also the event ErrorOccurred will be never triggered
I will remove them.
Btw good extension
This extension doesn't throws any error generally.
Anyways, I will remove that block by the next update
Thanks ![]()
One more thing is this extension doesn't required any special permission?
Yes this extension doesn't require any special permissions.
Actually, my extension makes the whole work a lot more simpler.
the import you need -
import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.runtime.*;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.runtime.errors.YailRuntimeError;
import com.google.appinventor.components.annotations.DesignerComponent;
import android.telephony.TelephonyManager;