Padma
Padma

Reputation: 656

How to modify strings.xml file at runtime

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?

Upvotes: 5

Views: 5841

Answers (1)

Octavian Helm
Octavian Helm

Reputation: 39604

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.

Upvotes: 6

Related Questions