10

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.

1 Answer 1

11

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.