Is it possbile to write String into string.xml from the code? if yes please post the code for the same. I want to use the same string.xml for the all the language strings at wanted to modify at run time
Asked
Active
Viewed 2,220 times
0
-
Why don't you provide different files (strings.xml) for different languages. – Mudassir Feb 25 '11 at 06:49
-
if my application is supporting more than 50 language is then i need to write one string 50 times for all the language so – Dinesh Prajapati Feb 25 '11 at 06:52
-
If you want to give your app in 50 language, obviously you've to quote all strings in all those languages. – Mudassir Feb 25 '11 at 07:05
-
But i don't want to do that so only i want to write it in the string.xml – Dinesh Prajapati Feb 25 '11 at 09:08
2 Answers
1
String.xml are like string constants..
You can only use it when needed.
You will not be able to change the content.

Vinay
- 2,395
- 3
- 30
- 35
1
if you have dynamic string depends on locale or language why not try storing it into SQL Lite ?

Kenneth
- 26
- 1
-
Ya I have thought to do it storing in the database only...but again db size will increase. anyway thanks for the ans. – Dinesh Prajapati Feb 25 '11 at 09:10