我想以编程方式验证android中的电话号码和电子邮件地址? [英] I want to verify phone number and e mail address in android by programatically ?

查看:96
本文介绍了我想以编程方式验证android中的电话号码和电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好......





i在android中有注册布局,其中包含电子邮件ID和电话号码editTextView。



当用户点击注册按钮然后检查出给定的电子邮件ID和电话号码是真的,这是假的。验证。



所以,PLZ任何想法都给我..

解决方案

我不确定这是否可行。这就是许多网站使用确认链接验证邮件的原因。如果代码是移动短信,用户必须在网站上输入代码进行确认。


使用正则表达式根据您的要求验证电子邮件和电话号码。

查看这些链接http://stackoverflow.com/questions/1819142/how-should-i-validate-an-e-mail-address-on-android,https:// tausiq。 wordpress.com/tag/phone-number-validation

hello...


i have registration layout in android which contain e-mail id and phone number editTextView.

when user click on register button then check out given e-mail id and phone number are true ya fake by verification.

so,plz any idea give me..

解决方案

I am not sure if this is possible. That's the reason many website use confirm link to verify the mail. In case of a code is SMS'd to mobile and user has to enter code in the website for confirmation.


Use Regular Expressions to validate E-mail and Phone numbers according to your requirement.
Check out these links http://stackoverflow.com/questions/1819142/how-should-i-validate-an-e-mail-address-on-android, https://tausiq.wordpress.com/tag/phone-number-validation


这篇关于我想以编程方式验证android中的电话号码和电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆