5

I will get localized data dynamically only.

Is there a way to update strings.xml file at runtime in Android? Can we add new string to the file at runtime?

Vlad
  • 18,195
  • 4
  • 41
  • 71
Padma
  • 656
  • 3
  • 11
  • 30

1 Answers1

6

Can we add new string to the file at runtime?

No. You can create a database of translations and maintain that database. Add new translations on the fly to the database and read the values from there.

Octavian Helm
  • 39,405
  • 19
  • 98
  • 102