Markus K
Markus K

Reputation: 1653

Android: Open app language settings from app itself

In Android 13, is there a way to open the new App info language settings using an intent in the app itself?

Thanks

Upvotes: 2

Views: 577

Answers (1)

Markus K
Markus K

Reputation: 1653

Solved, do something like this:

val intent = Intent(Settings.ACTION_APP_LOCALE_SETTINGS)
intent.data = Uri.fromParts("package", activity.packageName, null)
activity.startActivity(intent)

Read more here: https://developer.android.com/reference/android/provider/Settings#ACTION_APP_LOCALE_SETTINGS

Upvotes: 5

Related Questions