I have a class declaring constants for my app
public class GroupConstants {
..
public static final int INTEGER_VALUE = 1;
public static final int
Try getting rid of the GroupConstants. prefix in your case statements. For reasons completely unclear to me, it doesn't accept the same constant if it's prefixed with class name.
So instead of
case GroupConstants.STRING_VALUE:
please try:
case STRING_VALUE:
You might need a static import to make it compile.