Java tutorial
//package com.java2s; import java.util.Locale; import android.text.TextUtils; public class Main { public static String getCountry() { Locale locale = Locale.getDefault(); String countryCode = locale.getCountry(); if (TextUtils.isEmpty(countryCode)) { countryCode = ""; } return countryCode; } }