RTL not Support after removing app from recent (killing) - android

I am working on multi language application which contain Arabic language. I applied locale at 2 places
When change language
In the Splash Screen
At the first time when I change language and restart the application. Its working fine
When I kill the application but pressing back button and launch application again. Its also working fine.
But When I remove application from recent and launch the application, RTL not supported.
Any idea about this issue ? Please help me.
I think RTL and applied local not worked properly after removing application from recent.

Maybe you did not catch the current language so when app load again load a default
language
when lanch app again print language to know which language you init app

After doing lots of R&D I found this. Tried this and issue has been resolved

Related

Make android launcher default launcher in Kotlin

I'm programming an android launcher for kids. I want my launcher to be the default launcher automatically when I start my app. And when I exit my app, the old launcher is set as the default launcher again.
I read that this has not been possible for some time because of safety reason. But in the Samsung Kids Launcher it is possible.
I have found some work arounds - like opening the settings or open the launcher-chooser.
I don't like these solutions because it's very inconvenient and the settings are difficult for some people.
I found code but the code was very old and doesn't seem to work anymore.
I found a function that allows me to query whether my app is set as the default.
And I found two function for going in the settings.
ACTION_APPLICATION_DETAILS_SETTINGS
ACTION_MANAGE_DEFAULT_APPS_SETTINGS
But these settings are not the right one (very unspecified)
I found this articel:
how-to-set-default-launcher-from-setting-programatically
But I haven't used it to run yet.
Can you help me?
ps: I am a beginner in Kotlin and Android programming

Using Android App Bundle how do i get the system to download a new language when the system language is changed

I am migrating my app to use Android App Bundle publishing format.
I'm using Internal app sharing to test this change.
While installing the app for the first time I can see that the app is installed with all the languages I have added to the System languages menu.
incase I add a new System language that wasn't added before the installation of the app, how do I make Android download the new language strings?
As you can see here - https://www.youtube.com/watch?v=0raqVydJmNE&t=789s
It should get downloaded automatically.
But after i add a new language and go into my app the Locale is changed to the new language but my resources are still the language from before the switch.
I know I can use Core API to download languages in the code but I want the app to startup with the correct language not change language in the middle of the user's usage.
Is there anything I'm missing? do in seed to configure something else in gradle?
Thanks in advance.
It can take a little while (usually around 24 hours) for the Play Store to catch up with the language change. If you're okay with that delay, then you don't need to do anything.
Otherwise you can use the code provided in the official sample to guide you in your own implementation.

Android studio display

After almost a week without launching Android Studio, I come tonight to continue an application I'm working on and when I open it I notice that the display characters of the IDE have completely changed as you can see on the image. I thought that the language had changed, so I have been on several forums to find out if it is possible to change the language but apparently it is not possible. Given the arrangement of characters I suspected that it did not correspond to a language but I wanted to be sure. I have also tried to launch other IDEs such as NetBeans to make sure that the problem is not coming from my machine and it is working properly. So I come to you to know if someone would have a solution for me, I do not want to be forced to reinstall the IDE at the risk of losing all the update and plugin I installed.

NativeScript set autocorrection language

I am developing a NativeScript chat app in JavaScript for Android.
It will be used on italian devices, and I need to enable keyboard autocorrect for this language only.
The issue:
while the device language is set to English, autocorrect works, but it doesn't in Italian.
<TextField id="messageBox" hint="Scrivi un messaggio..." class="msg-input"
autocorrect="true" text="{{ testoMessaggio }}" ></TextField>
Since I am new to both NativeScript and Android development, I'm probably missing some basic knowledge about device locale language. Still, searching around I couldn't find any answer.
How can I fix this?
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.

Keep showing res/values-zh/strings.xml instead of res/values-en even when my phone's locale is English

Have an issue that my application keep showing res/values-zh/strings.xml instead of res/values-en even when my phone's locale is English or any other undefined locale(language).
Here is my main activity java class and it is showing English but we get the result on phone in Chinese
Here is default values strings
Would be much appreciated if someone have any idea on this issue as i had following the android studio documentation and the localization is not working properly and i could not find out the reason for quite long time. Kindly let me know if further info needed, thanks !
What version of Android do you use?
Is it Android N? Android N allows the user to configure a list of languages. If the first language is not supported, and the second is Chinese, then you will get Chinese UI (if Chinese strings are available, of course)

Categories

Resources