extract text from Editable - Android android.text

Android examples for android.text:Editable

Description

extract text from Editable

Demo Code


//package com.java2s;

import android.text.Editable;

public class Main {
    public static String extract(Editable editable) {
        String s = editable.toString();
        return s == null ? null : s.trim();
    }/*w  w w.java  2 s .c om*/
}

Related Tutorials