I am working on Android SDK-NDK and have a problem with the following piece of code:
case ColorArray:
List<Color> lIdList = stringToList
( new Function<String, Color>()
{
public Color apply(String pSubValue)
{ return new Color(pSubValue);
}
},
lValue
);
break;
This is the message on FC16 that Eclipse IDE gives:
The method stringToList(new Function<String,Color>(){}, String) is undefined for the type StoreActivity
To solve it, I have included:
import com.google.common.base.Function;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import com.google.common.primitives.Ints;
import java.util.ArrayList;
import java.util.List;
I have also added ‘guava-11.0.1.jar’ in Project > Properties > Java Build Path > Libraries.
But the problem doesn’t go away.
All comments and suggestions are highly appreciated.
Class
StoreActivitydoesn’t havestringToListmethod defined with this signature (stringToList(new Function<String,Color>(){}, String)), does it?