~/talk

Android app internationalization: users can now choose their application language

Talkat droidcon San Francisco 2022 · 2022-06-02..06-03· [android]
name:Ash Nohe
links:none on file
slides:none on file

Android 13 lets apps set per-app languages at runtime using AndroidX. Implement by declaring supported locales with a localeConfig XML in the manifest, call AppCompatDelegate.setApplicationLocales with a one-item LocaleList for runtime switching (handled as an activity restart), and let AndroidX persist choices with the autoStoreLocales manifest flag for pre-T compatibility. Settings app and in-app pickers sync when the runtime API is used, avoiding prior ad hoc storage and API-deprecation complexity.

AI-written summary · about

  1. 0:00Introduction to feature
  2. 1:34Why per-app language matters
  3. 2:59Declaring supported languages
  4. 3:42In-app language picker demo
  5. 5:08Storing locale preferences
  6. 6:32Migrating existing pickers
  7. 7:55Implementation order matters
  8. 9:20Should you implement this?
  9. 10:05Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.