Is the value of R.id.akey immutable if I store it and compare to R.id.akey?
I do store the value from the generated R.id.* from ids.xml into SharedPreferences to compare later
<resources>
<item name="opt_1" type="id" />
<item name="opt_2" type="id" />
</resources>
prefs.edit().putInt("PREF", R.id.opt_1).apply()
is safe to assume that the generated value will be equals between building project?
prefs.getInt("PREF", -1) == R.id.opt_1
Sorry for a yes or no question PS: Pretty sure this ins`t a problem for compile time
I noticed and its does change values if you modify ids.xml, there's how to make it immutable without using final static ints?