get Current Locale - Android android.content

Android examples for android.content:Context

Description

get Current Locale

Demo Code

import android.content.Context;

public class Main{

    public static String getCurrentLocale(Context context) {
        return context.getResources().getConfiguration().locale
                .getCountry();//from  w ww . j av a2 s  .  c  o m
    }

}

Related Tutorials