russian language not properly coming in android - android

I have a file with data that contain values in english and russian.
But when I try to print russian data in logcat, its not shown in the way its there in the file. Its coming as some special characters. What may be the reason?
For the above question, below answer worked....
Added new thing to the question:
I have search functionality in my app. So when I search this russian data, its not showing any results..if the data is english, it works perfectly...What could be the reason?

As I experienced, old ADT's Logcat doesn't support languages other than English. Update you ADT plugin (hope you are using Eclipse). I was also facing the same problem with Japanese, but as I've the new ADT now, its fine. You can update the ADT from Eclipse's Help menu >> Check for Updates.

I got solution for the second part too.. The problem was that word stored in db is actually russian only. Though it was seeming like english letters, in real case, it was in russian. I installed Russian Keyboard (GameWarrior) from market. Using that keyboard, I typed the search string. Then it worked perfectly fine. Thanks for the support #Mudassir.

Related

How to change default language (International not programming) in Android Studio

I have an android app that is not localized. All my strings are in strings.xml file.
After submitting to the store, I am getting a warning that my apk contains Australian English and I should provide images and the like for it.
I am using Android Studio 3.3.1 on Windows 10, and the OS language is English US. I don't know where is Australian English coming from, I am not even in Australia!
Where can I change this?
Click on Default (en-us)
which have list as per your string file added
for more you need to add string file
/values-es
/value-gu
it means you have options
1 for gu
2 for es
Got a response from Google Store support.
Apparently, the wording of their warning is a bit misleading.
They actually wanted to suggest I translate into Australian English, because I have users there.
So, if you get this it's safe to ignore...

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)

Cannot See Urdu Font Correctly on Android

I am developing an app that includes Urdu text. I downloaded the "Jameel Noori Nastaleeq" font from http://jameel-noori-nastaleeq-urdu-fonts.software.informer.com/1.0/. On some mobiles, it shows up just fine but on most of the mobiles it looks jumbled up. I have tried different fonts from different sites but the problem persists. I haven't been able to figure out whether it is Android Version, mobile device or some other parameter that has the issue. Need help in this regard. I am attaching both correctly displayed and jumbled up snapshots. Thanks
I would suggest to try the following fonts as well.
Alvi Nastaleeq
Pak Nastaleeq
Fajer Noori Nastaleeq
Urdu naskh asiatype
You can download from here http://www.urdujahan.com/font.html
If you still face the similar issue the try using Faiz Lahori Nastaliq (http://www.axissoftmedia.com ) font which apparently has full Unicode support .

Android not using/finding my Hebrew localization.

I'm working to localize my app for a number of language. Spanish is working great but Hebrew isn't showing up.
What confuses me is if I put the contents of my Hebrew strings folder in the Spanish folder(values-es) it works great. Spanish in my Hebrew folder(values-he) does not work though...
Any thoughts would be greatly appreciated.
Hebrew is locale like 'iw', and also 'he'.
As the #klausw mentioned in his answer:
you better store duplicate copies in both values-iw/ and values-he/
just to make sure it works in all devices.
rogcg is right for most Android devices, but apparently the Samsung Galaxy S2 incompatibly uses locale "he" for Hebrew and ignores values-iw/. If you want to be compatible with those devices too, you need to store duplicate copies in both values-iw/ and values-he/. See also https://stackoverflow.com/a/8573059/405214.
Bear in mind that as of Summer 2021 bundle (.aab) file is required instead of the .apk file. This change brings optimization to many things but some language related problems as well: if your device does not support a specific language, it will not be downloaded from the Play Store.
Check the solution here.

Android Custom font shows up blank on some phones

I'm using a custom font for a Japanese quiz app on Android. I tried it on a friend's phone at a cookout, and the font did not show up (it shows up on mine and others). The font is delivered with the apk. I don't have access to the logcat, and unfortunately forgot to check the phone model, although I think it's kind of a budget version. Has anyone had this problem this, or have any ideas what might cause it?
well, if you use delivered font with APK and got unexpected results, its generally rendering issue with Android system .. with other words, Android System cannot render all characters correctly. you need to know that earlier versions of Android don't support all Unicodes as well as later but off cause with more supported characters . if you want to test that on emulator, try to test your app with version 1.6.
I got similar issue with Arabic characters ..
I can help you with those guides:
1- try to check the characters you are using, and be away from rare characters.
2- try a different common font if its available.
3- If you built your own font, try to rebuild it again and use supported ID of glyphes. as I told you Android doesn't support all Unicode characters (supports based on ID). and its different from version to another.
4- check and detect unsupported characters ( you can do that by measuring length of character and compare it with pre-measured length of that character) then insert it as image with suitable dimension.
5-you can use webview instead of TextView/EditText ..
I hope that will help you ..
good luck,

Categories

Resources