开发者

How to change string resource xml values in Android programatically?

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜