I have searched internet and tried the following code but its not working
SpannableString ss1 = new SpannableString(\"Health: \"); ss1.setSpan(new and
The easiest way is
textview1.setText(Html.fromHtml("Health: good"));
The mistake in your code is to use string concatenation here: "\n"+ss1+strhealth+"\n\n" which strips out all formatting because the components are taken as normal strings.
"\n"+ss1+strhealth+"\n\n"