Asked
Active
Viewed 1,743 times
2 Answers
2
- Go to your "YourProjectFolder/app/src/main/res" folder, then
- Create a folder named "values-ur" folder in res folder
- Create file "strings.xml" inside values-ur
- Inside that strings.xml add your strings,eg:
"urdu_text" is your urdu strings.
In your Activity class take getString(R.string.text_one), and if you have a textview, textview.setText(getString(R.string.text_one));
For more info : https://developer.android.com/guide/topics/resources/localization.html

dev
- 260
- 2
- 12
-
I am very beginner. I don't know what are you saying... Can you please explain it....? – Shakeel Mughal Apr 02 '18 at 14:51
-
Not able to save these strings in **strings.xml** file – Shakeel Mughal Apr 05 '18 at 03:32
-
What is the error. check syntax for declaring a string is correct or not – dev Apr 05 '18 at 04:28
-
When I am going to save this string. **
میں ایک پاکستانی ہوں -
check any of your strings have special characters like "&" or something..and also your folder name should be values-ur inside res folder.. – dev Apr 06 '18 at 04:53
-
I did it. Thanks **Sir** dev – Shakeel Mughal Apr 06 '18 at 16:34
-
Happy to help..Pls upvote – dev Apr 07 '18 at 01:50
-
Sir dev.... How I add urdu fonts in my project? – Shakeel Mughal Apr 09 '18 at 02:35
-
https://stackoverflow.com/questions/27588965/how-to-use-custom-font-in-android-studio This link will help – dev Apr 09 '18 at 09:41
1
You just required to have all text in urdu unicode. Android Activity, layouts supports urdu. sqlite3 also supports urdu.

Tabish Siddiqui
- 11
- 3
-
I am very **beginner**. I don't know what are you saying... Can you please explain it....? – Shakeel Mughal Apr 02 '18 at 14:50