How to get Integer value from res/integers.xml?
You're looking at the android.R.integer
instead of your.namespace.R.integer
.
Eclipse probably imported the wrong one; it does that sometimes, it's rather annoying.
Go to your imports at the top of the file and remove:import android.R;
Then you should be able to use the quick-fix to add the correct import.