Java Code Examples for com.umeng.analytics.MobclickAgent#openActivityDurationTrack()

The following examples show how to use com.umeng.analytics.MobclickAgent#openActivityDurationTrack() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppBaseActivity.java    From browser with GNU General Public License v2.0 6 votes vote down vote up
@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());

}
 
Example 2
Source File: SplashActivity.java    From wallpaper with GNU General Public License v2.0 6 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_splash);

	// =====================================
	MobclickAgent.updateOnlineConfig(this);
	MobclickAgent.openActivityDurationTrack(false);
	MobclickAgent.setDebugMode(true); // 使用普通测试流程
	// =====================================
	// do network request
	SplashViewModel viewModel = (SplashViewModel) ViewModelManager.manager().newViewModel(SplashActivity.class.getName());
	this.setViewModel(viewModel);
	viewModel.setActivity(this);

	new Handler().postDelayed(new Runnable() {
		public void run() {
			// execute the task
			gotoSelectSchoolOrMainActivity();
		}
	}, 2 * 1000);
}
 
Example 3
Source File: QuShiDetailActivity.java    From QiQuYing with Apache License 2.0 5 votes vote down vote up
private void initYouMeng() {
	AnalyticsConfig.enableEncrypt(true);
	MobclickAgent.openActivityDurationTrack(false);
	PushAgent mPushAgent = PushAgent.getInstance(this);
	mPushAgent.onAppStart();
	if(spUtil.getBoolean(Constants.IS_RECEIVE_PUSH, true)) {
		mPushAgent.enable();
	} else {
		mPushAgent.disable();
	}
}
 
Example 4
Source File: MainActivity.java    From zhangshangwuda with Apache License 2.0 5 votes vote down vote up
private void init() {
	MainActivityActionbar = getSupportActionBar();
	mFragmentManager = getSupportFragmentManager();
	setDrawer();
	initWeekTitle();
	agent = new FeedbackAgent(this);
	agent.sync();
	// MobclickAgent.setDebugMode(true);
	MobclickAgent.openActivityDurationTrack(false);
	UmengUpdateAgent.setUpdateOnlyWifi(false);
	UmengUpdateAgent.update(this);
}
 
Example 5
Source File: SoundBarApplication.java    From misound with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    SoundBarORM.addSetting(this, SoundBarORM.TryConnectCount, "2");

    Intent iDataIntent = new Intent("com.xiaomi.mitv.idata.server.INTENT_DATA_COLLECTION");
    startService(iDataIntent);

    boolean forcescanbluetooth = false;
    final String boot_start = SoundBarORM.getSettingValue(getApplicationContext(), "boot_start");
    if(boot_start != null && boot_start.equals("1")){
        forcescanbluetooth = true;
        
        Log.d("SoundBarApplication", "will start run soundbar service after 60 seconds, if you want change, please change the databases ");
    }        
    
    //start sound bar service to keep the sound bar connection
    final String value = SoundBarORM.getSettingValue(getApplicationContext(), SoundBarORM.supportMultiConnection);
    if(forcescanbluetooth || (value != null && value.equals("1"))){
        
        //one minutes later
        final int boot_delay_seconds_count = SoundBarORM.getIntValue(getApplicationContext(), SoundBarORM.boot_delay_seconds_count, 80);
    }

    BTDeviceMonitor.listen(getApplicationContext());

    XiaomiUpdateAgent agent = new XiaomiUpdateAgent();
    MobclickAgent.openActivityDurationTrack(false);
}
 
Example 6
Source File: MyApplication.java    From wakao-app with MIT License 5 votes vote down vote up
@Override
public void onCreate() {
	super.onCreate();
	propertyManger = new PropertyManger(this);
	propertyManger.setProsPath(PropertyManger.PATH_USERINFO);
	user = getUserInfo();
	
	MobclickAgent.openActivityDurationTrack(false);
}
 
Example 7
Source File: Main.java    From iSCAU-Android with GNU General Public License v3.0 5 votes vote down vote up
private void initMobclickAgent(){
    MobclickAgent.updateOnlineConfig(this);
    MobclickAgent.openActivityDurationTrack(false);
    // 检查反馈消息;
    FeedbackAgent agent = new FeedbackAgent(this);
    agent.sync();
}
 
Example 8
Source File: SimplifyReaderApplication.java    From SimplifyReader with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    MobclickAgent.setDebugMode(true);
    MobclickAgent.updateOnlineConfig(this);
    MobclickAgent.openActivityDurationTrack(false);
    UmengUpdateAgent.update(this);

    VolleyHelper.getInstance().init(this);
    ImageLoader.getInstance().init(ImageLoaderHelper.getInstance(this).getImageLoaderConfiguration(ApiConstants.Paths.IMAGE_LOADER_CACHE_PATH));
}
 
Example 9
Source File: SplashActivity.java    From QiQuYing with Apache License 2.0 5 votes vote down vote up
private void initYouMeng() {
//		AnalyticsConfig.enableEncrypt(true);
		MobclickAgent.openActivityDurationTrack(false);
		PushAgent mPushAgent = PushAgent.getInstance(this);
		mPushAgent.onAppStart();
		if(spUtil.getBoolean(Constants.IS_RECEIVE_PUSH, true)) {
			mPushAgent.enable();
		} else {
			mPushAgent.disable();
		}
	}
 
Example 10
Source File: TuDetailActivity.java    From QiQuYing with Apache License 2.0 5 votes vote down vote up
private void initYouMeng() {
	AnalyticsConfig.enableEncrypt(true);
	MobclickAgent.openActivityDurationTrack(false);
	PushAgent mPushAgent = PushAgent.getInstance(this);
	mPushAgent.onAppStart();
	if (spUtil.getBoolean(Constants.IS_RECEIVE_PUSH, true)) {
		mPushAgent.enable();
	} else {
		mPushAgent.disable();
	}
}
 
Example 11
Source File: MobclickAgentProxy.java    From android-project-wo2b with Apache License 2.0 5 votes vote down vote up
public static void openActivityDurationTrack(boolean arg0)
{
	if (!DEBUG)
	{
		MobclickAgent.openActivityDurationTrack(arg0);
	}
}
 
Example 12
Source File: AppMain.java    From mobile-manager-tool with MIT License 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    mInstance = this;

    //捕捉系统崩溃日志
    Thread.setDefaultUncaughtExceptionHandler(uncaughtExceptionHandler);

    startService(new Intent(this, DownloadService.class));
    //startService(new Intent(this, MobileManagerService.class));
    registerSDK();

    //禁止默认的页面统计方式
    MobclickAgent.openActivityDurationTrack(false);
}
 
Example 13
Source File: MyApplication.java    From Android-Tech with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    MobclickAgent.setDebugMode(true);
    MobclickAgent.setCatchUncaughtExceptions(true);
    MobclickAgent.openActivityDurationTrack(false);

}
 
Example 14
Source File: AppContext.java    From FriendBook with GNU General Public License v3.0 5 votes vote down vote up
private void initUmeng(Context context) {
    MobclickAgent.
            startWithConfigure(
                    new MobclickAgent.UMAnalyticsConfig(context, C.UMENG_APP_KEY, C.UMENG_APP_CHANNEL)
            );
    // 禁止默认的页面统计方式,这样将不会再自动统计Activity
    MobclickAgent.openActivityDurationTrack(false);
}
 
Example 15
Source File: NoteApplication.java    From Jide-Note with MIT License 4 votes vote down vote up
/**
 * 友盟配置
 */
private void umengConfig() {
    MobclickAgent.openActivityDurationTrack(false); // 禁止默认的页面统计方式
    /** 设置是否对日志信息进行加密, 默认false(不加密). */
    AnalyticsConfig.enableEncrypt(true);
}
 
Example 16
Source File: ClientApplication.java    From githot with Apache License 2.0 4 votes vote down vote up
private void initUmeng() {
    MobclickAgent.openActivityDurationTrack(false);
}
 
Example 17
Source File: UmengAnalytics.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public static void config(boolean flag, boolean flag1, boolean flag2)
{
    b = flag;
    MobclickAgent.setDebugMode(flag1);
    MobclickAgent.openActivityDurationTrack(flag2);
}
 
Example 18
Source File: BaseApplication.java    From NewFastFrame with Apache License 2.0 4 votes vote down vote up
private void initUM() {
    String channel = WalleChannelReader.getChannel(this.getApplicationContext());
    UMConfigure.init(this, Constant.UM_KEY, channel, UMConfigure.DEVICE_TYPE_PHONE, null);
    MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_GAME);
    MobclickAgent.openActivityDurationTrack(false);
}
 
Example 19
Source File: AnalyticsUtils.java    From freeiot-android with MIT License 2 votes vote down vote up
public static void init() {
	
	MobclickAgent.setDebugMode(false);
	
	MobclickAgent.openActivityDurationTrack(false);
}