Проблема заключается в следующем участке кода.
int restId=R.drawable.im1+i;
Текст ошибки:
im1 cannot be resolved or is not a field
Содержимое класса R
.
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int hzk12=0x7f020000;
public static final int ic_action_search=0x7f020001;
public static final int ic_launcher=0x7f020002;
public static final int im1=0x7f020003;
Подскажите, что не так?
UPD
Код для Андроид 4.0.3. Может там какие-то другие способы обращения к значениям в классе R
?