Data storage in Androidstudio use of third-party data management Bmob

Source: Internet
Author: User

---restore content starts---

In the process of daily writing code, we are more painful is the establishment and use of the database, then today to introduce a third-party data management platform BMONB.

First, we enter Bmob's official website to create an account

Bome Website: http://www.bmob.cn/

Ii. Open Androidstudio Create a new project and Project build.gradle add it to the fileBmob的maven仓库地址(添加maven地址必填)。

https://raw.github.com/bmob/bmob-android-sdk/master

Third, in app the build.gradle file to add compile依赖文件,可以根据开发者的需要自行选择官方提供了数据存储、文件服务

Push packages, instant Messaging packets, SMS communication packets.

Iv. Configuration Androidmanifest.xml

V. Third Party package has been added

Vi. initializing the Bmob in the OnCreate () method of the activity

Seven, then we go back to Bmob's official website. Create a new application that is equivalent to building a library.

Eight, open the app you created and then click on the left side of the settings will appear the key of the app you created contains the application ID we want to fill in the sixth step of the initialization.

Nine, after all the preparations have been done, let's write a test of the person class which inherits the Bmobobject to write the Get () and set () methods.

Ten, and then we go back to Minactivity to invoke the written person class.

After completing the above steps, we go back to Bmob's website to open the app you've created and you'll see the data you've created, and you can add your own form on the website.

Because I also learned this third-party data management may have some shortcomings, please understand, follow-up I will continue to improve the Android side of the data increase, delete, change, remove.

Data storage in Androidstudio use of third-party data management Bmob

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.