Code example for UnderlineSpan

	public void setInTextStyle(char tag, int start, int end){
		SpannableString textString;
		textString=  new SpannableString(text.getText());
		if((textString.length()>=end)&&(end>start)){										//Check the tag chosen and sets the segment of String to the chosen tag using start and end values of the string. Flag integer is always set to 0.
					textString.setSpan(new UnderlineSpan(), start, end, 0);
			else if(tag=='b')
					textString.setSpan(new StyleSpan(Typeface.BOLD), start, end, 0);
			else if(tag=='i')
					textString.setSpan(new StyleSpan(Typeface.ITALIC), start, end, 0);		
			System.out.println("TextHandler module, method setInTextStyle says: Input is not correct");
	//Method to set colour using hext integer AARRGGBB 
	public void setColourIntAARRGGBB(int inColourHex){
		Paint paint = new Paint();