Friday 15 August 2014

android - How exactly the R.string.* constants are generated? -


I r in a db I want to store the generated string of constants.

Does the constellation generate (semi) randomly and between versions such as? Or they have been created like hashcode , so their values ​​are XML-file & lt; String / & gt; Elements will not remain touched?

You should not store R.java constants in the database, because Their values ​​can change when the application has been compiled again.

Instead of any type of map & lt; Integer, String & gt; constant, each string is a unique < Code> R.string matches the values ​​and their prices never change, you can store them in the database instead.


No comments:

Post a Comment