Answer the question
In order to leave comments, you need to log in
Is it possible to manipulate string.xml programmatically?
I just recently started to master android, do not judge strictly. There was such question: whether it is possible to use string.xml for storage of string simple resources? Let's say there is an input field and a button, there is an empty ArrayList in string.xml. Is it possible to make it so that after pressing the button, the content of the input field is stored in this arrayList, and it can be obtained after restarting the application? If so, is it possible then to selectively remove elements from the array?
Answer the question
In order to leave comments, you need to log in
No. This is impossible.
https://developer.android.com/reference/android/co... - learn
either other ways to store data (SQLite etc)
string resources and string.xml are meant for something a little different. Try to write ArrayList to any other xml file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question