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