encode space to   - Android java.lang

Android examples for java.lang:String XML

Description

encode space to  

Demo Code

import android.text.TextUtils;

public class Main{

    public static String encode(String string) {
        string = TextUtils.htmlEncode(string);
        return string.replace(" ", " ");
    }/*from   ww  w  .  ja v a  2 s.  c  o  m*/

}

Related Tutorials