1

Is it possible to add dynamically (on run-time) values to android resources file? For example to add new string to string.xml or to add new item to existing string array.

1 Answer 1

12

No, it is not possible to add values dynamically to any part of your resources.

All resources are compiled into a read-only binary file when you generate your apk, and you cannot add extra data to it. You will have to use the internal or external storage for such data.

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

Comments

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.