Bmob of third-party services backend Cloud integration, user login, user registration, get user, user logoff (i)
Bmob Introduction:
Step One: Bmob integration
Register a user in www.bmob.cn, create an app in the background of the website, go to the admin page and get the application ID in the settings:
In your Android studio project, add the Bmob Maven repository to project Build.gradle:
Then add the compile dependency file in the app's Build.gradle:
To configure permissions in the manifests file:
In the OnCreate method of activity
Step Two: User login request
First you have to create JavaBean, inherit bmobuser: (Extension class that belongs to Bmob user)
Login Request in Code:
Step three: User registration request (after the successful request will automatically create a _user table in the background)
Step four: Get current user information
Step five: User logoff request
Android Combat--Bmob of third-party services back-end cloud integration, user login, user registration, get user, user logoff (i)