Exemplo n.º 1
0
 public boolean isNum(String str) {
   for (int i = 0; i < checkedPersons.size(); i++) {
     String phone = checkedPersons.get(i).phone;
     if (!PublicMethod.isphonenum(phone)) {
       Toast.makeText(this, "您输入的手机号" + phone + "是错误的,请重新输入!", Toast.LENGTH_SHORT).show();
       return false;
     }
   }
   return true;
 }