How to use Hindi Language in text view on Eclipse - android

I want to Hindi text on Textview but it showing nothing. what is the codes to install the hindi fonts on Eclipse. I couldn't find proper codes to implement on it. So please give me some idea to use Hindi text on my project.

Related

How to use tamil text as input in android

I am creating an android application in which i have used the south indian language to display the text in tamil for which i have converted all the strings to tamil but i need to give the inputs in edit text as tamil.
How can i do this if the user doesn't have a tamil keyboard installed with them can anyone show me some examples for input the text in android with local languages.What i have done so far is converted the strings to tamil but i want to give the inputs in tamil.I have tried using some examples which gives the values as tamil but it dosn't shows how to give the inputs in tamil.
The only option would be to create a custom Keyboard for your app, you have little to no control over the system InputMethod.

Writing in HINDI in android studio string.xml

I am trying to learn/build my first few apps on android using android studio. Apart from default language, I wanted to add support for HINDI language. I have created strings.xml file required for hindi and I have verified that whatever string I put in this file is displayed correctly when HINDI language is selected on Android device. To try this, I just wrote different sting in English characters, because I am unable to figure out how to write in HINDI in android studio.
For eg. I want something like this in my hindi strings.xml
<string name="customer_name">क्रुपया अपना नाम लिखे</string>
Currently I just have this in my XML:
<string name="customer_name">Please enter your name</string>
Could someone please provide on what should I do to type directly in hindi language in android studio xml?
You could use on-line Hindi editor like http://www.quillpad.in/editor.html and then copy paste your words in the android studio translation window.
Not sure whether this has been answerd already or not, but I did it by typing the words/phrases in Microsoft Word using Hindi keyboard, and then copy-pasted the text into Android Studio Translation Editor.
Not sure whether your problem is Hindi typing or Android Localization.
There are many options.
You can use a mobile keyboard.
You can use transliteration which is a word-level conversion from Roman to Hindi.
or Microsoft Indic tool which is a char level conversion to Devanagari chars.
There is no learning curve in using transliteration. Transliterators are provided by Google and Microsoft both.
Microsoft transliterator and indic tools both are available here.
https://www.microsoft.com/en-in/bhashaindia/downloads.aspx
By the way, the right spelling is कृपया not क्रुपया

Display Hindi/Tamil/Telugu text in android application

I have a rooted phone and was trying to play around with my phone. It has android 2.2 installed. What I want to do is to display Hndi/Tamil/Telugu text inside the application that I was trying to develop. Obviously android 2.2 does not support these fonts.
As the phone is rooted doing this was easy for one language. I just followed the tips given in this link Enable Hindi Fonts on Rooted Device and was able to get Hindi fonts throughout the system. Similar approach helped me setup Tamil fonts.
But I am not able to make both Hindi and Tamil work together. The possible solutions I can think off are :
i) Create a common ttf file which shall contain both Hindi and Tamil fonts. But I have no idea whether this is possible or not.
ii) Keep a .ttf file for each language in the assets/fonts/ folder but again this is showing just square boxes on the device.
I tried this link Display Different Languages In Applicationtoo but again this seems to work for only supported fonts.
Any guidance would be highly appreciated. Thanks
Try this sample application.I shared here the whole application code for how to display one text in multiple languages especially Kannada and Telugu.

Android hindi chars soft keypad?

I am using Hindi fonts in my application by using the following code as:
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/DroidHindi.ttf");
txt.setTypeface(font);
Now I wanted to take input from the user in an edit Text box in hindi language..So for this, Hindi soft keypad is required , can anyone pls guide me how to add hindi language soft keypad?
It depends entirely on the user's choice of keyboard.
To test Hindi input, download one of the Hindi IME available on the market, such as PaniniKeypad Hindi IME, or get GO Keyboard and "Hindi for GO Keyboard", all of them available on the Android Market for free.

Android: How can I make this "समोसा" appear as Hindi characters in my app?

I have these codes that are from a database. They represent Devangari (Hindi) script:
समोसा
I have a Hindi font installed on my phone.
How I get these codes to display as Hindi script in my Android app?
for a TextView, try .setText(android.text.Html.fromHtml("समोसा")

Categories

Resources