Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isPhoneNumberValid(String mobile) { return !(TextUtils.isEmpty(mobile) || !TextUtils.isDigitsOnly(mobile) || mobile.length() != 11); } }