My app works greatly with the exception of a few devices. On one such device, I get a FATAL EXCEPTION in one of my activities. The error is java.lang.ClassCastExcept
Did you make your style button as spannable? For example, TextView should be like this
TextView.setText("Hai", TextView.BufferType.SPANNABLE);
it seems like i was calling android:imeOptions="actionDone" in the xml layout file. i removed that and it didn't crash anymore.
why?
This may be a little bit late but, make sure the text in the TextView you are trying to Span isn't set as ""
. For some reason empty strings are not spannable.