I suggest to always use the keys defined in the string resources (as it was in the old preferences). That way we can assure that the settings keys in the Java code and in the XML declaration are exactly the same.