In a regular Android project, constants in the resource R class are declared like this:
public static final int main=0x7f030004;
However, as of ADT 14, in a library project, they will be declared like this:
public static int main=0x7f030004;
ADT 14부터는 상수가 아니라서 switch문으로 쓰면 에러로 처리 되니, if else 사용하라고 하네요.
참고 사이트:
다음검색