Android Studio Tutorial - How to change app language without changing phone language edmt dev

EDMT Dev · 80K views · 2017 · 19:13

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed when building multilingual Android apps, usually before asking about problems like action bar titles, other activities, or older Android versions.

Recommended by 1 people across 1 different months, 2017 to 2019.

What it is

A roughly 19-minute Android Studio tutorial from EDMT Dev showing how to switch an app's display language at runtime without touching the phone's system language. It walks through a locale helper approach and a button-driven language change.

What people said

Recommends Hitch92 · 2018-09 · Stack Overflow · on “Multingual Android app in kotlin giving this message : System services not available to Activities before onCreate()”

i was trying to make a multilingual app in android following this tutorial : [this video] i'm using kotlin in developing the app and im facing some error i can't handle it so far. here's the app_intro Activity: package com.xr.mapbased import android.content.Context import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.support.v7.app.AlertDialog import android.widget.Button import android.widget.TextView import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper import uk.co.chrisjenx.calligraphy.CalligraphyConfig import android.content.DialogInterface import android.media.VolumeShaper import com.google.android.gms.stats.WakeLock import java.util.* import androi

Cites Koumos · 2017-12 · Stack Overflow · on “localize action bar title”

I am trying to localize my app from English to various other languages. I am not sure how to change the language of the action bar titles. I have included all my activities in the manifest.xml file as shown below for a single activity. <activity android:name=".layers" android:label="@string/layers"> <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".geometry" /> </activity> As of today, I have been able to localize my buttons, edit texts, and view texts using the following tutorial " [this video] ". I have not figured out though how to localize all my action bar titles. I would appreciate any help towards solving this issue. I apologize for not posting any sample code, but

Cites dyan tb · 2018-02 · Stack Overflow · on “How to create multiple language in other activity?”

In other question i have answer to create multiple language. But not used in all activity/pages aplications. How to change language in other activity/page? i have code to main activity/page only, how to create in other activity/page? i use this code to change language: @Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(LocaleHelper.onAttach(newBase, "en")); } private void updateView(String lang) { Context context = LocaleHelper.setLocale(this, lang); Resources resources = context.getResources(); navigation_view.getMenu().findItem(R.id.account).setTitle(resources.getString(R.string.menuAccount)); navigation_view.getMenu().findItem(R.id.settingPassword).setTi

Cites Matin Soleimani · 2019-12 · Stack Overflow · on “Android - Changing app language for all versions of Android”

I tried a few ways to change the locale of the android app, but when I test my app on Android 7.0 or lower, the locale is not changed. Note: The ways worked on Android 8.0 or upper, but they didn't work on Android 7.0 or lower. Which way does work on all of the Android versions? Do you know? The ways that I tried: The first way [LINK] The second way [LINK] The third way [this video] Note: I tested my app on Galaxy Tab S2 with Android 7.0 (Didn't work). And on a Galaxy A5 2017 with Android 8.0 (Worked). Note: Many of my activities wrote in Kotlin. My codes: Locale Helper class: public class LocaleHelper { private static final String SELECTED_LANGUAGE = "Locale.Helper.Selected.Language"; public sta