接入MTA SDK
This commit is contained in:
@ -17,6 +17,7 @@ import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.gh.common.constant.Config;
|
||||
import com.gh.common.util.DataUtils;
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import com.gh.common.util.DisplayUtils;
|
||||
import com.gh.common.util.RunningUtils;
|
||||
@ -25,11 +26,8 @@ import com.gh.gamecenter.R;
|
||||
import com.gh.gamecenter.eventbus.EBShowDialog;
|
||||
import com.gh.gamecenter.manager.SystemBarTintManager;
|
||||
import com.gh.gamecenter.manager.SystemBarTintManager.SystemBarConfig;
|
||||
import com.tendcloud.tenddata.TCAgent;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import cn.sharesdk.framework.ShareSDK;
|
||||
import de.greenrobot.event.EventBus;
|
||||
@ -179,20 +177,6 @@ public class BaseActivity extends Activity {
|
||||
// siteUrl是分享此内容的网站地址,仅在QQ空间使用
|
||||
oks.setSiteUrl(url);
|
||||
|
||||
final Map<String, Object> map = new HashMap<String, Object>();
|
||||
map.put("title", title);
|
||||
map.put("url", url);
|
||||
map.put("from", entrance);
|
||||
map.put("createdOn", System.currentTimeMillis() / 1000);
|
||||
|
||||
// oks.setOnShareButtonClickListener(new OnShareButtonClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View v, List<Object> checkPlatforms) {
|
||||
// map.put("method", checkPlatforms.get(0).getClass().getSimpleName());
|
||||
// DataCollectionManager.onEvent(BaseActivity.this, "share", map);
|
||||
// }
|
||||
// });
|
||||
|
||||
oks.setOnFinishListener(new PlatformPage.OnFinishListener() {
|
||||
@Override
|
||||
public void onFinish() {
|
||||
@ -203,7 +187,7 @@ public class BaseActivity extends Activity {
|
||||
|
||||
// 启动分享GUI
|
||||
oks.show(this);
|
||||
TCAgent.onEvent(this, "内容分享", title);
|
||||
DataUtils.onEvent(this, "内容分享", title);
|
||||
isShowShare = true;
|
||||
}
|
||||
|
||||
@ -229,7 +213,7 @@ public class BaseActivity extends Activity {
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
AppLog("onPause");
|
||||
TCAgent.onPause(this);
|
||||
DataUtils.onPause(this);
|
||||
isPause = true;
|
||||
}
|
||||
|
||||
@ -243,7 +227,7 @@ public class BaseActivity extends Activity {
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
AppLog("onResume");
|
||||
TCAgent.onResume(this);
|
||||
DataUtils.onResume(this);
|
||||
isPause = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user