//判断当前号码是否是正确的手机号码public static boolean isPhoneNumberValid(String phoneNumber) {    boolean isValid = false;    CharSequence inputStr = phoneNumber;    //正则表达式    String phone="^1[3456789]\\d{9}$" ;    Pattern pattern = Pattern.compile(phone);    Matcher matcher = pattern.matcher(inputStr);    if(matcher.matches()) {        isValid = true;    }    return isValid;}

更多相关文章

  1. android 发送短信 判断号码规则 判断字符数70
  2. android获取手机的所有通讯录的号码和sim卡号码
  3. perl 获取手机号码归属地
  4. android 入门学习笔记 判断网页地址 邮箱 电话号码 符合要求的加
  5. android 获取本机SMI卡号码
  6. android 判断手机号码格式

随机推荐

  1. Android(安卓)使用Dom与SAX解析xml文档的
  2. RemoteView流程
  3. android 自定义View之Path详解
  4. Android(安卓)不在崩溃
  5. Android——Activity的生命周期
  6. Android(安卓)opencore 2.02 howto
  7. android之点击事件ImageView切换
  8. android 游戏开发-libgdx(一)
  9. android 线程方式打印log到sd卡
  10. android开机启动代码