I am a cse 3rd year student .I am working on OCR equation solver project of my course, I need to write superscript form in polynimial equatione. I have already used this method
((TextView)findViewById(R.id.text)).setText(Html.fromHtml("X<sup>2</sup>"));
but it doen't work , I have failed to find out what is wrong,Or any better idea ? suggest please .. help me .Thanks in advance