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?

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

any sample implementation for this
@GeorgeThomas I did a library that does almost it, you can check it here: github.com/jcminarro/Philology

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.