本文整理匯總了Java中com.umeng.analytics.MobclickAgent.openActivityDurationTrack方法的典型用法代碼示例。如果您正苦於以下問題:Java MobclickAgent.openActivityDurationTrack方法的具體用法?Java MobclickAgent.openActivityDurationTrack怎麽用?Java MobclickAgent.openActivityDurationTrack使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.umeng.analytics.MobclickAgent
的用法示例。
在下文中一共展示了MobclickAgent.openActivityDurationTrack方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
// 禁止默認的頁麵統計方式,這樣將不會再自動統計Activity(默認頁麵統計隻能統計Activity,不能統計Activity下麵包含的Fragment)
MobclickAgent.openActivityDurationTrack(false);
LogUtils.getLogConfig().configAllowLog(!IS_RELEASE_VERSION) // Log日誌開關
.configTagPrefix(getPackageName()) //設置Log日誌Tag前綴:用包名
.configShowBorders(true)
.configLevel(LogLevel.TYPE_VERBOSE);
if (IS_RELEASE_VERSION) {
MobclickAgent.setDebugMode(false); // 友盟統計SDK,集成測試開關
} else {
MobclickAgent.setDebugMode(true);
}
initImageLoader(this); // 初始化ImageLoader
SDKInitializer.initialize(this); // 初始化百度地圖-注意:在SDK各功能組件使用之前都需要調用,因此我們建議該方法放在Application的初始化方法中
}
示例2: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//PushAgent.getInstance(this).onAppStart();
MobclickAgent.openActivityDurationTrack(false);
getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN
);
mBaseActivity.init(getBaseContext(), this);
onActivityInit();
LogUtil.d(TAG, "checktask onCreate:" + super.getClass().getSimpleName()
+ "#0x" + super.hashCode() + ", taskid:" + getTaskId()
+ ", task:" + new ActivityTaskUtils(this));
abstracrRegist();
getTopBarView().showSearch(hasSearch());
}
示例3: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
// 設置異常捕獲處理類
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
Session.get(this);
mInstance = this;
MobclickAgent.openActivityDurationTrack(false);
//初始化友盟分享
//開啟debug模式,方便定位錯誤,具體錯誤檢查方式可以查看http://dev.umeng.com/social/android/quick-integration的報錯必看,正式發布,請關閉該模式
// Config.DEBUG = true;
UMShareAPI.get(this);
initCacheFile(this);
OpenInstall.init(this);
//打開調試,便於看到Log
OpenInstall.setDebug(false);
initUmengPush();
}
示例4: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setSwipeBackEnable(false);
if (initBundle(getIntent().getExtras())) {
setContentView(getContentView());
initWindow();
ButterKnife.bind(this);
initWidget();
initData();
} else {
finish();
}
//umeng analytics
MobclickAgent.setDebugMode(false);
MobclickAgent.openActivityDurationTrack(false);
MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
}
示例5: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setSwipeBackEnable(false);
initBundle(getIntent().getExtras());
if (getLayoutId() != 0) {
setContentView(getLayoutId());
}
initToolBar();
initView();
initData();
//umeng analytics
if (BuildConfig.DEBUG) {
MobclickAgent.setDebugMode(true);
}
MobclickAgent.openActivityDurationTrack(false);
MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
}
示例6: onHandleIntent
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
protected void onHandleIntent(@Nullable Intent intent) {
//UMeng初始化
MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
MobclickAgent.setCatchUncaughtExceptions(true);
MobclickAgent.openActivityDurationTrack(false);
//Logcat異常捕捉
// CrashHandler.getInstance().initCrashHandler(getApplication());
// init Feedback
// FeedbackPlatform.init(this.getApplication());
// init Share
SharePlatform.init(this.getApplicationContext());
}
示例7: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
MultiDex.install(getApplicationContext());
// if (AppUtils.isNamedProcess(getApplicationContext(), getPackageName())) {
//androidtools init
AndroidTools.init(getApplicationContext(), BuildConfig.LOG_TAG);
//UMeng init
String umeng_appkey = AppUtils.getMetaDataString(getApplicationContext(), "UMENG_APPKEY");
String umeng_channel = AppUtils.getMetaDataString(getApplicationContext(), "UMENG_CHANNEL");
MobclickAgent.UMAnalyticsConfig config = new MobclickAgent.UMAnalyticsConfig(getApplicationContext(), umeng_appkey, umeng_channel);
MobclickAgent.startWithConfigure(config);
MobclickAgent.setDebugMode(BuildConfig.INNER_TEST);
MobclickAgent.setCatchUncaughtExceptions(true);
MobclickAgent.openActivityDurationTrack(false);
// }
}
示例8: initUmeng
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
private void initUmeng(Context context) {
MobclickAgent.
startWithConfigure(
new MobclickAgent.UMAnalyticsConfig(context, C.UMENG_APP_KEY, C.UMENG_APP_CHANNEL)
);
// 禁止默認的頁麵統計方式,這樣將不會再自動統計Activity
MobclickAgent.openActivityDurationTrack(false);
}
示例9: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
mContext = getApplicationContext();
MultiDex.install(getApplicationContext());
baseComponent = DaggerBaseComponent.builder()
.baseModule(new BaseModule())
.build();
BaseApi.init();
//AndroidTools initialization
AndroidTools.init(getApplicationContext(), getLogTag());
//OkHttpClient initialization
MyOkHttpClient.init(getApplicationContext());
//Fresco initialization
Fresco.initialize(getApplicationContext(),
ImagePipelineFactory.imagePipelineConfig(getApplicationContext()
, MyOkHttpClient.provideOkHttpClient()
, getCacheDir().getAbsolutePath()));
//UMeng initialization
MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
MobclickAgent.setCatchUncaughtExceptions(true);
MobclickAgent.openActivityDurationTrack(false);
mActivityManager = new ActivityManager();
}
示例10: init
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
public static void init() {
// 如果沒有在AndroidManifest 設置AppKey
// AnalyticsConfig.setAppkey(UMENG_APPKEY);
MobclickAgent.setDebugMode(BuildConfig.UMENG_DEBUG);
MobclickAgent.setSessionContinueMillis(1000l);
MobclickAgent.setCatchUncaughtExceptions(true);
// SDK在統計Fragment時,需要關閉Activity自帶的頁麵統計,
// 然後在每個頁麵中重新集成頁麵統計的代碼(包括調用了 onResume 和 onPause 的Activity)。
MobclickAgent.openActivityDurationTrack(false);
}
示例11: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.App_Theme_Light);
onBeforeSetContentLayout();
if (getLayoutId() != 0) {
setContentView(getLayoutId());
}
mActionBar = getSupportActionBar();
mInflater = getLayoutInflater();
if (hasActionBar()) {
initActionBar(mActionBar);
}
// 通過注解綁定控件
ButterKnife.bind(this);
init(savedInstanceState);
initView();
initData();
_isVisible = true;
//umeng analytics
MobclickAgent.setDebugMode(false);
MobclickAgent.openActivityDurationTrack(false);
MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
}
示例12: openActivityDurationTrack
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
public static void openActivityDurationTrack(boolean arg0)
{
if (!DEBUG)
{
MobclickAgent.openActivityDurationTrack(arg0);
}
}
示例13: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
mContext = getApplicationContext();
MultiDex.install(getApplicationContext());
baseComponent = DaggerBaseComponent.builder()
.baseModule(new BaseModule())
.build();
BaseApi.init();
//AndroidTools initialization
FormatStrategy formatStrategy = PrettyFormatStrategy.newBuilder()
.tag(getLogTag())
.build();
AndroidTools.init(getApplicationContext(), formatStrategy, Logger.DEBUG);
//OkHttpClient initialization
MyOkHttpClient.init(getApplicationContext());
//Fresco initialization
Fresco.initialize(getApplicationContext(),
ImagePipelineFactory.imagePipelineConfig(getApplicationContext()
, MyOkHttpClient.provideOkHttpClient()
, getCacheDir().getAbsolutePath()));
//UMeng initialization
MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
MobclickAgent.setCatchUncaughtExceptions(true);
MobclickAgent.openActivityDurationTrack(false);
mActivityManager = new ActivityManager();
}
示例14: onCreate
import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
//MultiDex initialization
MultiDex.install(getApplicationContext());
//多進程隻對主進程初始化
String processName = AppUtils.getProcessName(getApplicationContext(), Process.myPid());
if (getPackageName().equals(processName)) {
//API initialise
BaseApi.init();
// //LeakCanary initialization
// if (LeakCanary.isInAnalyzerProcess(this)) {
// // This process is dedicated to LeakCanary for heap analysis
// // You should not init your app in this process
// return;
// }
// LeakCanary.install(this);
//AndroidTools initialise
AndroidTools.init(getApplicationContext(), getLogTag());
//DiskFileCacheHelper initialise
mCacheHelper = DiskFileCacheHelper.get(getApplicationContext(), getLogTag());
//UMeng initialise
MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
MobclickAgent.setCatchUncaughtExceptions(true);
MobclickAgent.openActivityDurationTrack(false);
Logger.i(getCurPackageName());
Fresco.initialize(getApplicationContext(), ImagePipelineFactory.imagePipelineConfig(getApplicationContext()
, new OkHttpClient()
, getCacheDir().getAbsolutePath()));
}
CrashHandler.instance().init(new CrashHandler.OnCrashHandler() {
@Override
public void onCrashHandler(String phoneInfo, Throwable e) {
onCrash(phoneInfo, e);
}
});
}