The example of this article for everyone to share the Android mobile phone automatically get the message authentication code function for everyone to refer to, the specific content as follows
1. SMS Listening and broadcasting
2, read the message content
3, intercept the message content "can be reg interception"
4, fill out to the corresponding control
Ps:devstore test did not get the verification code
var clock = ';var nums = 10;var btn;function Sendcode (THISBTN){BTN = thisbtn;Btn.disabled = true; Set the button to not clickableBtn.value = nums+ ' Second can be re-acquired ';Clock = setinterval (doloop, 1000); Execute once in one second}function Doloop (){nums--;if (Nums > 0) {Btn.value = nums+ ' Second can be re-acquired ';}else{Clearinterval (clock); Clear JS Timerbtn.disabled = false;Btn.value = ' Click to send verification code ';Nums = 10; Re
"en">"UTF-8">"Generator" content="EditPlus?">"Author" content="">"Keywords" content="">"Description" content="">"phonenum" type="text" value="18518181818"/>"second" type="button" value="免费获取验证码" />Based on the JS implementation of SMS Verification code after the countdown function (ignoring the page refresh, the page is closed without the countdown function)
(new namevaluepair[] {new Namevaluepair ("account", account), new Name Valuepair ("pswd", pswd), New Namevaluepair ("mobile", mobile), New Namevaluepair ("Needstatus ", String.valueof (Needstatus)), New Namevaluepair (" MSG ", msg), New Namevaluepair (" Extno ", E Xtno),}); int result = ClienT.executemethod (method); if (result = = HTTPSTATUS.SC_OK) {InputStream in = Method.getresponsebodyasstream (); Bytearrayoutputstream BAOs = new Bytearrayoutputstream ();
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.