Created
September 17, 2015 13:15
-
-
Save sakurabird/6c88fc121e6a715be9f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 環境が日本語ならtrue | |
*/ | |
public static boolean isJapan() { | |
String locale = MyApplication.getContext().getResources().getConfiguration().locale.getLanguage(); | |
Utils.logDebug("locale:" + locale); | |
return locale.equals("ja"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment