Java tutorial
//package com.java2s; import java.util.Locale; import android.content.Context; import android.content.res.Configuration; public class Main { public static String getCountry(Context context) { Configuration configuration = context.getResources().getConfiguration(); String country = configuration.locale.getCountry(); return country.toLowerCase(Locale.getDefault()); } }