如何改变字符串资源XML值在Android的编程?字符串、资源、Android、XML

由网友(撒渔网旅人)分享简介:是否有可能为编辑在Android中String.xml值?请给我建议的可能途径。 我想提供启用/禁用选项我的应用程序。要做到这一点,我可以使用SQLite数据库。但我不喜欢使用DB为一个单一变量的值。 在此先感谢。 与问候, Raghavendraķ。Is there any possibility to E...

  是否有可能为编辑在Android中String.xml值?请给我建议的可能途径。 我想提供启用/禁用选项我的应用程序。要做到这一点,我可以使用SQLite数据库。但我不喜欢使用DB为一个单一变量的值。 在此先感谢。 与问候, Raghavendraķ。

Is there any possibility to Edit String.xml values in Android? Please suggest me the possible ways. I want to provide Enable/Disable option for my App. To accomplish this I can use SQLite database. But I doesn't like to Use DB for a single variable value. Thanks in Advance. With Regards, Raghavendra K.

推荐答案

你是不是要能够直接编辑String.xml。然而,有一个中间地带,考虑使用Shared$p$pferences.这些都是伟大的,当你只是一对夫妇的价值存储和不喜欢处理一个完整的数据库。

You aren't going to be able to edit String.xml directly. However there is a middle ground, look into using SharedPreferences. Those are great when you just have a couple values to store and don't feel like dealing with a full database.

阅读全文

相关推荐

最新文章