realn0whereman/Subway-Sandwich-Builder — Issue #20: Bread_submenu hex code
Author: realn0whereman
Created: 2011-12-15 11:38:18+00:00
State: open

rgSize.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener(){
/**
* Change listener that will update the sandwich object with the size of the sandwich.
* It changes what radio button is checked based on the id of the button pressed.
*/
public void onCheckedChanged(RadioGroup group, int checkedId) {
if (checkedId == 0x7f050002){
Sandwich_AG.sandwich.setSixInch(true);
}else if (checkedId == 0x7f050003){
Sandwich_AG.sandwich.setSixInch(false);
}

}
});

It looks as though the hex code is meant to access something inside R.java. That file is rebuilt and the values change every time you build/change the view somehow. Leaving these as static hex values is dangerous.