Java tutorial
//package com.java2s; import java.util.Locale; import android.content.Context; public class Main { public final static String getSystemLocaleStringUsedAppStat(Context context) { Locale mlocale = context.getResources().getConfiguration().locale; return mlocale.toString().replace("_", "-"); } }