Android SMS verification

Android SMS verification

Developer platform address used https://www.mob.com/

Click on the product center in the upper right corner

Insert picture description here

Enter developer mode

Insert picture description here
Create an application.
Insert picture description here
Fill in the application information, the picture can be free, the APP name can be written according to your needs.
Insert picture description here
After filling in, you can view the key and secret. After
Insert picture description here
creating the application, you can configure it in your own project. Read the development document and
remember that this is placed in the grade (Project Project). ) Is not (Module)
Insert picture description here
This is placed under grade (Module), the specific location is as follows, if the wrong location is synchronized, an error will be reported
Insert picture description here

The code of the core api document, the specific structure is as follows.
Insert picture description here
setcode is a specific method to implement SMS verification.
Insert picture description here
Call this method directly in the oncreate method. After
Insert picture description here
starting the project, the UI interface of SMS verification will be displayed directly. The default SMS verification interface and our daily SMS verification is basically the same
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44822939/article/details/107311453