textToSpan.setSpan(new BackgroundColorSpan(0xBFFFC600), o, o + termLength, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
for some reason the color is always yellow. I have tried two greenish colors :
0xBFFFC6
and 0x99FF99
I sense I am messing up somewhere with the order of the colors.
The actual solution was to get the color like so:
I still do not know why it has to be like this.