[Free / Open Source] GetCountryISO Extension

Get Country ISO Extension

An simple extension to automatically get ISO of user's country.

Blocks

image

Open Source

Download

Direct Download : xyz.nisarga.GetCountry.aix (6.8 KB)

4 Likes

Your code contains lots of unnecessary imports.

also the event ErrorOccurred will be never triggered

I will remove them.

1 Like

Btw good extension

1 Like

This extension doesn't throws any error generally.
Anyways, I will remove that block by the next update

1 Like

Thanks :slight_smile:

One more thing is this extension doesn't required any special permission?

Yes this extension doesn't require any special permissions.

1 Like

Can be done with blocks....:sigh:

4 Likes

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;
3 Likes