problem:
nothing seems to be wrong,no any error infomation,but changes in code no longer takes effect even for the simplest example.i.e:
public void onRadioButtonClicked(View view) {
// Is the button now checked?
boolean checked = ((RadioButton) view).isChecked();
switch(view.getId()) {
case R.id.rdo_todo:
if (checked){
Log.e("actedit", "rdo click22");
}
break;
case R.id.rdo_reminder:
if (checked){
TimePickerDialog_doofin.newInstance(0, 10, true)
.show(getFragmentManager(), "tpddf");
}
break;
}
}
add some logger:
public void onRadioButtonClicked(View view) {
// Is the button now checked?
boolean checked = ((RadioButton) view).isChecked();
Log.e("actedit", "rdo click???");
switch(view.getId()) {
case R.id.rdo_todo:
if (checked){
Log.e("actedit", "rdo click22");
}
break;
case R.id.rdo_reminder:
if (checked){
TimePickerDialog_doofin.newInstance(0, 10, true)
.show(getFragmentManager(), "tpddf");
Log.e("actedit", "rdo click rm");
}
break;
}
}
when i click the radio buttons,the logger does not show.Other changes in code also didn't take effect in devices.
what i've tried but no effect
I view the source file in disk,it did changed.delete apk from device and reinstall apk in debug mode ,the problem remains. clean project delete . at project's bin folder delete .metadate file and re-import project,still no use!!
my view
there must be some place for eclipse to hide/store the old code,but where is it?? from this link: Java Code not properly updating
If none of these work, then I believe there could be some kind of lock in the file system but i have reboot several times,and use vim to see that the source code actually changes
extra info
i use android sdk with eclipse juno.
cause
there were 3 versions of android sdks in computer before:4.2.2,4.4.2,4.4w,i mainly use 4.4.2. yesterday i deleted 4.4.2 sdk and start using 4.4w sdk ,the problem occurs after that.
most weired is:i deleted every file in .metadata and project's own bin folder,but when i ran app,it still give me result from old code !
update
i start a new project,the code is behaves normally,no prob. so i copy old project's bin and src folder to the new one,hope the problem can be solved,but it remains...