Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 802
Padma Avatar asked May 18 '11 11:05

Padma


1 Answers

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.

like image 174
Octavian A. Damiean Avatar answered Sep 17 '22 11:09

Octavian A. Damiean