|
@@ -21,6 +21,9 @@ import com.sunzee.model.domain.Name;
|
|
|
import com.sunzee.service.MyService;
|
|
|
import com.sunzee.utils.FileUtil;
|
|
|
import com.sunzee.utils.SharedPreferencesUtils;
|
|
|
+import com.umeng.commonsdk.UMConfigure;
|
|
|
+import com.umeng.commonsdk.UMConfigureImpl;
|
|
|
+import com.umeng.umcrash.UMCrash;
|
|
|
|
|
|
/**
|
|
|
* Created by MinKin.
|
|
@@ -52,6 +55,15 @@ public class BaseApplication extends Application {
|
|
|
firstHeartbeat();
|
|
|
setDatabase();
|
|
|
getScreenWidthHeight();
|
|
|
+ Log.d(TAG, "onCreate: "+Heartbeat.deviceId);
|
|
|
+ String deviceId ="";
|
|
|
+ if (Heartbeat.deviceId != null && Heartbeat.deviceId.length() > 7) {
|
|
|
+ deviceId = Heartbeat.deviceId.substring(Heartbeat.deviceId.length() - 6);
|
|
|
+ }else{
|
|
|
+ deviceId="zengwenlong";
|
|
|
+ }
|
|
|
+ UMConfigure.init(this, "5ee80e9fdbc2ec076dd49301",deviceId, UMConfigure.DEVICE_TYPE_PHONE, "");
|
|
|
+// UMConfigure.setLogEnabled(true);
|
|
|
}
|
|
|
|
|
|
//获取屏幕高和宽:不包含虚拟按键部分的高和宽。
|