|
@@ -13,6 +13,8 @@ import com.uas.pda_smart_com.R;
|
|
|
import com.uas.pda_smart_com.util.AndroidUtil;
|
|
|
import com.uas.pda_smart_com.util.FakeX509TrustManager;
|
|
|
import com.uas.pda_smart_com.util.SoundUtil;
|
|
|
+import com.umeng.analytics.MobclickAgent;
|
|
|
+import com.umeng.commonsdk.UMConfigure;
|
|
|
|
|
|
import java.io.ByteArrayInputStream;
|
|
|
import java.io.IOException;
|
|
@@ -82,6 +84,31 @@ public class PdaApplication extends Application {
|
|
|
mSoundMap.put(SoundUtil.SOUND_SALACIA, mSoundPool.load(this, R.raw.salacia, 1));
|
|
|
mSoundMap.put(SoundUtil.SOUND_TETHYS, mSoundPool.load(this, R.raw.tethys, 1));
|
|
|
mSoundMap.put(SoundUtil.SOUND_TITAN, mSoundPool.load(this, R.raw.titan, 1));
|
|
|
+
|
|
|
+ initUmeng();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ private void initUmeng() {
|
|
|
+
|
|
|
+ UMConfigure.preInit(this, "6170b8b61c91e0671bb0da5a","umeng");
|
|
|
+ UMConfigure.setLogEnabled(true);
|
|
|
+
|
|
|
+ UMConfigure.init(
|
|
|
+ this,
|
|
|
+ "6170b8b61c91e0671bb0da5a",
|
|
|
+ "umeng",
|
|
|
+ UMConfigure.DEVICE_TYPE_PHONE, ""
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.AUTO);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|