如何改变字符串资源XML值在Android的编程? [英] How to change string resource xml values in Android programatically?
问题描述
是否有可能为编辑在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。然而,有一个中间地带,考虑使用<一个href="http://developer.android.com/reference/android/content/Shared$p$pferences.html">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.
这篇关于如何改变字符串资源XML值在Android的编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!