나는 일식 안드로이드에 약간 문제가있다.반환 후 Eclipse에서 항상 오류를 표시하는 이유는 무엇입니까?
나는 몇 가지 자바 파일이 있지만 반환 후 메서드를 호출하면; (예를 보시오) 그것은 그 방법을 제거하라고 알려준다. 왜? Android 1.6을 사용하고 있습니다.
public void onClick(View paramView)
{
switch (paramView.getId())
{
default:
case 2131296257:
}
while (true)
{
return;
fetchAlarmSettings(); <-- It tells me to remove this.
if (this.strAlarmOnOff.equals("0"))
{
this.butAlarmSet.setText("Turn Alarm Off");
this.db.updateSetting("alarmTime", this.strHour.concat(this.strMinute));
this.db.updateSetting("alarmOnOff", "1");
switch (this.cal.compareTo(Calendar.getInstance()))
{
default:
case -1:
}
while (true)
{
this.setNotifications.setAlarm(this.cal);
break;
this.cal.roll(5, 1);
}
}
this.butAlarmSet.setText("Turn Alarm On");
this.db.updateSetting("alarmOnOff", "0");
this.setNotifications.turnAlarmOff();
}
}
고마워요!
메서드 (및 while 루프 내의 코드 나머지 부분)가 실행되지 않으므로 – ccheneson
이것은 Android 관련 항목이 아닙니다. 기본 자바입니다. – keyser
이 코드는 무엇을하고 있습니까 ??? – Korinna