Hi everyone,
I'm working on an app running on a rooted Android 9 panel that's embedded in a control system for swimming pools. The user interacts solely with our app after boot, but they need to configure system settings like Wi-Fi, Ethernet, and time. To avoid reinventing the wheel by coding all these features from scratch, especially Ethernet (which isn't supported natively in Android), we open OS intents from our app to handle these settings.
The challenge comes when it comes to system language. We want the language of the OS menus to match the app's language. To achieve this, we use the app
net.sanapeli.adbchangelanguage
to change the system language via a shell command (e.g.,
am start -n net.sanapeli.adbchangelanguage/.AdbChangeLanguage -e language fr,en
). This command is executed from our app whenever the user changes the language.
The problem is that executing this command seems to cause the app to restart, despite "
FirstTime
" being
False
. As our app needs to communicate continuously with bus devices, this restart disrupts its operation. I’ve tried placing the
B4XPagesManager.initialize
inside
FirstTime
, but it only results in a white screen.
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Create **
** Activity (main) Resume **
Has anyone experienced a similar issue or found a way to change the system language without restarting the app? Any help would be greatly appreciated!
Thanks in advance!