Create HTML Error String Html - Android java.lang

Android examples for java.lang:String HTML

Description

Create HTML Error String Html

Demo Code

import android.text.Html;
import android.text.Spanned;
import java.util.ArrayList;
import java.util.List;

public class Main{

    public static Spanned getErrorString(String msg) {
        return Html.fromHtml("<font color=#000>" + msg + "</font>");
    }//from w ww .  java  2  s.  com

}

Related Tutorials