SMSSDK SMS verification

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_39249422/article/details/79159909

SMS verification requires the phone number registered

Here's a quick look at the SMSSDK

1. First, register an account on the Mob development platform
http://www.mob.com/downloads/

2. Click into the background, there is a project to create the upper left, click to create a project, on the left there is a list and then select the appropriate SDK plus SMSSDK click on the back,


3. Then go download the SDK http://www.mob.com/downloadDetail/SMS/android


4. Then good now extract from the jar folder to copy the libs SMSSDK under SMSSDK inside the jar files to the corresponding directory of your android studio project


Then add permissions in the Mainifests

In the following add

Then these are dependent jar files into the project so the SDK Configuration finished
  
5. Create a new MyApplication it good application and Secret Key to write just fine 


6. Now in the code to achieve first pass in the XML folder to build a grace this input box, a button

6. Click the button in the realization of java code to send the phone number you entered.
. SMSSDK registerEventHandler ( EV ); SMS verification set callback listeners
 
  
7. When the button is clicked when the first judge whether the phone number is empty, if not empty to send a verification code


Such a simple SMS verification is realized, then here is the Mob of sdk



Guess you like

Origin blog.csdn.net/qq_39249422/article/details/79159909