How Can I Develop An Android Application In Hindi Language ?
## I want to develop an application that support English and Hindi## 1.i want to create this application for 4.0 ice cream sandwich
Solution 1:
It is done by storing values for text displayed in different resource files for each language.
Read this http://developer.android.com/training/basics/supporting-devices/languages.html
it shall solve your problem
The resource structure:
MyProject/
res/
values/
strings.xml
values-hi/
strings.xml
Add the string values for each locale into the appropriate file.
At runtime, the Android system uses the appropriate set of string resources based on the locale currently set for the user's device.
For example, the following are some different string resource files for different languages.
English (default locale), /values/strings.xml:
<?xml version="1.0" encoding="utf-8"?><resources><stringname="title">My Application</string><stringname="hello_world">Hello World!</string></resources>
Hindi, /values-hi/strings.xml:
<?xml version="1.0" encoding="utf-8"?><resources><stringname="title">कखग</string><stringname="hello_world">ककक</string></resources>
Post a Comment for "How Can I Develop An Android Application In Hindi Language ?"