Android Studio Log in Register realize the function of the phone number verification

We usually write landing registration function is very common register an account, password, and sign in. This time, wanted to write a slightly different interface and register before landing, so the thought of a way to verify the phone number.

Now many app, registered phone numbers are based on our market appears, and then send authentication codes to log in and register.

We are now using bmob cloud database, which has created a specialized development documentation module, provides a method for us to achieve a lot of features compared to other databases, such as SQlite, Mysql, I prefer bmob Haha, it is because there are ready-made Methods. I do phone number validation, verification code is sent, the method which is looking at.

I lost the phone number and send the verification code into two interfaces to note that this way, then, to send a verification code and registration method, we must put all activity in the second interface. But also because of this, we have a problem in the context of traditional values, because the phone number is entered on a screen. This use to intent of intent.putExtra ( "number", number) ; = getIntent and intent (); Number The = intent.getStringExtra ( "Number The"); method the phone number passed in the past, which is passed from one interface value to a method in the interface. (Intent also pass values from one interface to the next one interface method, we understand self)

bmob database which is really a lot of very practical way, you'll learn a good school to gain a lot, you can go sign up for an account, try to understand

Guess you like

Origin www.cnblogs.com/hu-1004/p/12089196.html