get Phone Number Country Iso - Android Phone

Android examples for Phone:Phone Number

Description

get Phone Number Country Iso

Demo Code


//package com.java2s;
import android.content.Context;

import android.telephony.TelephonyManager;

public class Main {
    public static String getPhoneNumberCountryIso2(Context paramContext) {
        return ((TelephonyManager) paramContext.getSystemService("phone"))
                .getSimCountryIso();// w w w.j av  a2 s.  c o  m
    }
}

Related Tutorials