Android Cloud Server build and auto update function of Friends Alliance app

Source: Internet
Author: User

Setcontentview (R.layout.activity_splash);         // Bmob SDK Initialization--only this piece of                code is required to complete the initialization // please go to bmob official website (http://www.bmob.cn/) to apply for ApplicationID, specific address: Http://docs.bmob.cn/android/faststart/index.html?menukey=fast_start &key=start_android        Bmob.initialize (this, constant.bmob_app_id);         + "Launched! ");

Apply Appkey, modify the value of Appkey.

Friends Union Automatic Update:

<meta-data android:value= "5562c52c67e58ec940003892" android:name= "Umeng_appkey" ></meta-data>         <meta-data android:value= "Qd_umeng" android:name= "Umeng_channel"/>
Umengupdateagent.setupdateautopopup (false); Umengupdateagent.setupdatelistener (NewUmengupdatelistener () {@Override Public voidOnupdatereturned (intupdatestatus,updateresponse UpdateInfo) {                Switch(updatestatus) { CaseUpdatestatus.yes://Has updateUmengupdateagent.showupdatedialog (Mcontext, updateInfo);  Break;  CaseUpdatestatus.no://Has no update//Toast.maketext (Mcontext, "No Update", Toast.length_short). Show ();                     Break;  CaseUpdatestatus.nonewifi://None WiFi//Toast.maketext (Mcontext, "No wifi connection, only updates under WiFi", Toast.length_short). Show ();                     Break;  CaseUpdatestatus.timeout:// Time Out//Toast.maketext (Mcontext, "timeout", Toast.length_short). Show ();                     Break;        }            }        }); Umengupdateagent.update (mcontext);

Android Cloud Server build and auto update function of Friends Alliance app

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.