user3391455
user3391455

Reputation: 51

How to modify android string.xml or our own xml file runtime

My requirement is I need to modify client configuration information into one values/client_configuration.xml at runtime. I Google it, couldn't resolve issue. I don't want to keep in sharedPreference. Because this application already developed need to do some modification only. So are there any ways to change file?

please guide me.

Thanks

Upvotes: 0

Views: 588

Answers (1)

Aleks G
Aleks G

Reputation: 57346

You cannot change any files that are included with the application as it's distributed. What you can do is copy an XML file from inside you assets folder, for example, to the internal storage and then use it from there. You can modify the file on local storage as necessary. Or use a sqlite database.

You didn't provide any context about what it is you really need to do, but it sounds like you don't have a full understanding of how apps utilise storage. I strongly suggest you read Storage Options sections of the Android documentation.

Upvotes: 1

Related Questions