Sobrescrito do TextView para Android

Então, eu estou tentando adicionar superscipt / subscrito a um TextView, basicamente tentando fazer uma fração ser exibida como1/2. Não tenho certeza onde estou indo errado, e eu sou novo com o Android, então qualquer ajuda é apreciada. Obrigado!

SpannableStringBuilder numSpan = new SpannableStringBuilder(String.valueOf(num));
SpannableStringBuilder denSpan = new SpannableStringBuilder(String.valueOf(den));

numSpan.setSpan(new SuperscriptSpan(), 0, numSpan.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
denSpan.setSpan(new SubscriptSpan(), 0, denSpan.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

outputText.setText(numSpan + "/" + denSpan, TextView.BufferType.SPANNABLE););