get Current Language - Android android.content

Android examples for android.content:Context

Description

get Current Language

Demo Code

import android.content.Context;

public class Main {

  public static String getCurrentLanguage(Context context) {
    String language = null;/*from  w w w.j  a va  2 s.c o  m*/
    language = context.getResources().getConfiguration().locale.getCountry();
    return language;
  }

}

Related Tutorials