How to change Lang from Activity [Android]
An easy way to change system-locale temporarly in an android-app:
final Resources res = this.getResources();
final DisplayMetrics dm = res.getDisplayMetrics();
android.content.res.Configuration conf = res.getConfiguration();
conf.locale = locale;
res.updateConfiguration(conf, dm);
have fun! drdrej
Written by Andreas Siebert
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#