Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean checkNumber(EditText editText) { return (editText.getText().toString().trim().length() < 10) ? true : false; } }