API24から deprecated指定になったので Build.VERSION.SDK_INTを見て「getConfiguration().getLocales()」と切り替え。
ロケールのリストが返るのでプライマリのロケールだけ必要なら get(0)とする<If only the primary locale is needed, getLocales().get(0) is now the preferred accessor.
孤独に歩め。悪をなさず、求めるところは少なく、林の中の象のように。
API24から deprecated指定になったので Build.VERSION.SDK_INTを見て「getConfiguration().getLocales()」と切り替え。
ロケールのリストが返るのでプライマリのロケールだけ必要なら get(0)とする<If only the primary locale is needed, getLocales().get(0) is now the preferred accessor.