Commit e67154c96abfb5d1ec98e24480a259ed8358e06d

Authored by wugian
1 parent a68df0d3

集成umeng

... ... @@ -142,6 +142,7 @@ dependencies {
142 142 compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
143 143 compile group: 'com.google.zxing', name: 'core', version: '3.3.0'
144 144 // compile group: 'com.umeng.analytics', name: 'umeng-analytics', version: '5.4.1'
  145 + compile 'com.umeng.analytics:analytics:latest.integration'
145 146 compile group: 'com.nineoldandroids', name: 'library', version: '2.4.0'
146 147 compile group: 'com.squareup.retrofit2', name: 'retrofit', version: '2.0.2'
147 148 compile group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.0.2'
... ...
... ... @@ -32,12 +32,12 @@
32 32 android:icon="@drawable/ic_launcher"
33 33 android:label="@string/app_name"
34 34 android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
35   - <!-- <meta-data
  35 + <meta-data
36 36 android:name="UMENG_APPKEY"
37   - android:value="556ff5c367e58e3d5900180b" />
  37 + android:value="58e70169677baa0510000632" />
38 38 <meta-data
39 39 android:name="UMENG_CHANNEL"
40   - android:value="${channel}" />-->
  40 + android:value="ft" />
41 41 <!-- <meta-data android:name="com.gimi.common.cinema.utils.CustomCachingGlideModule" android:value="GlideModule" /> -->
42 42
43 43 <activity
... ...
... ... @@ -12,6 +12,7 @@ import com.gimi.common.cinema.utils.AuthUtils;
12 12 import com.gimi.common.cinema.utils.LeeImageLoader;
13 13 import com.gimi.common.cinema.utils.SystemUtils;
14 14 import com.gimi.common.cinema.utils.Utils;
  15 +import com.umeng.analytics.MobclickAgent;
15 16 import com.xgimi.gimicinema.BuildConfig;
16 17 import com.xgimi.gimicinema.service.AskService;
17 18
... ... @@ -29,6 +30,7 @@ public class BaseActivity extends Activity {
29 30 protected void onCreate(Bundle savedInstanceState) {
30 31 // setBaseTheme();
31 32 super.onCreate(savedInstanceState);
  33 + MobclickAgent.setDebugMode(true);
32 34 agentType = Utils.getInt(Utils.getSp(this), "agent-type", 0);
33 35
34 36 }
... ... @@ -102,6 +104,7 @@ public class BaseActivity extends Activity {
102 104 @Override
103 105 protected void onResume() {
104 106 super.onResume();
  107 + MobclickAgent.onResume(this);
105 108 bind();
106 109 if (agentType == 5 && AuthUtils.checkOfflineAuthTime(this)) {
107 110 return;
... ... @@ -113,6 +116,11 @@ public class BaseActivity extends Activity {
113 116 }
114 117 }
115 118
  119 + @Override
  120 + protected void onPause() {
  121 + super.onPause();
  122 + MobclickAgent.onPause(this);
  123 + }
116 124
117 125 SystemUtils systemUtils;
118 126
... ...
... ... @@ -21,7 +21,6 @@ import android.widget.RadioGroup;
21 21 import android.widget.RelativeLayout;
22 22 import android.widget.TextView;
23 23 import android.widget.Toast;
24   -
25 24 import com.gimi.common.cinema.model.FolderItem;
26 25 import com.gimi.common.cinema.model.LocalMovieMessage;
27 26 import com.gimi.common.cinema.model.MessageEvent;
... ... @@ -34,7 +33,6 @@ import com.xgimi.gimicinema.R;
34 33 import com.xgimi.gimicinema.mview.IMovieListView;
35 34 import com.xgimi.gimicinema.presenter.MovieListPresenter;
36 35 import com.xgimi.gimicinema.view.MovieItem;
37   -
38 36 import org.greenrobot.eventbus.EventBus;
39 37 import org.greenrobot.eventbus.Subscribe;
40 38 import org.greenrobot.eventbus.ThreadMode;
... ... @@ -142,6 +140,7 @@ public class MovieListsActivity extends BaseActivity implements IMovieListView {
142 140 clickPosition = data;
143 141 LocalMovieMessage localMovieMessage = mData.get(data);
144 142 presenter.jumpToDetail(localMovieMessage);
  143 +// throw new NullPointerException("my own error crash upload");
145 144 }
146 145 };
147 146
... ...
Please register or login to post a comment