Skip to content

Instantly share code, notes, and snippets.

@tikitikipoo
Created January 5, 2012 01:39
Show Gist options
  • Save tikitikipoo/1563245 to your computer and use it in GitHub Desktop.
Save tikitikipoo/1563245 to your computer and use it in GitHub Desktop.
Androidにおける設定国を取得
import android.content.res.Configuration;
import android.content.res.Resources;
public static String getCountry(Context context) {
Resources rs = context.getResources();
Configuration cf = rs.getConfiguration();
String country = cf.locale.getCountry();
return country;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment