setContentView(R.layout.activity_splash);
//Bmob SDK初始化--只需要这一段代码即可完成初始化
//请到Bmob官网(http://www.bmob.cn/)申请ApplicationId,具体地址:http://docs.bmob.cn/android/faststart/index.html?menukey=fast_start&key=start_android
Bmob.initialize(this, Constant.BMOB_APP_ID);
LogUtils.i(TAG,TAG + " Launched !");

申请APPKey,修改AppKey的值.

友盟自动更新:

 <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(new UmengUpdateListener() {
@Override
public void onUpdateReturned(int updateStatus,UpdateResponse updateInfo) {
switch (updateStatus) {
case UpdateStatus.Yes: // has update
UmengUpdateAgent.showUpdateDialog(mContext, updateInfo);
break;
case UpdateStatus.No: // has no update
//Toast.makeText(mContext, "没有更新", Toast.LENGTH_SHORT).show();
break;
case UpdateStatus.NoneWifi: // none wifi
//Toast.makeText(mContext, "没有wifi连接, 只在wifi下更新", Toast.LENGTH_SHORT).show();
break;
case UpdateStatus.Timeout: // time out
//Toast.makeText(mContext, "超时", Toast.LENGTH_SHORT).show();
break;
}
}
});
UmengUpdateAgent.update(mContext);
05-07 15:23