Android Combat--Bmob of third-party services back-end cloud integration, user login, user registration, get user, user logoff (i)

Source: Internet
Author: User

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)

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.