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

The following examples show how to use com.umeng.analytics.MobclickAgent#setDebugMode() . 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: 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 2
Source File: AppController.java    From pybbsMD with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    context = this;

    // 初始化JodaTimeAndroid
    JodaTimeAndroid.init(this);

    // 配置全局异常捕获
    if (!BuildConfig.DEBUG) {
        Thread.setDefaultUncaughtExceptionHandler(this);
    }

    // 友盟设置调试模式
    MobclickAgent.setDebugMode(BuildConfig.DEBUG);
}
 
Example 3
Source File: MrApplication.java    From mr-mantou-android with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    MobclickAgent.setDebugMode(BuildConfig.DEBUG);
    MobclickAgent.setCatchUncaughtExceptions(false);

    if (BuildConfig.FIR_ENABLED) {
        FIR.init(this);
    }

    MrSharedState.createInstance();

    AVObject.registerSubclass(Image.class);

    AVOSCloud.initialize(this, BuildConfig.AVOS_APP_ID, BuildConfig.AVOS_APP_KEY);
}
 
Example 4
Source File: MaterializeApplication.java    From materialize with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    MobclickAgent.setCatchUncaughtExceptions(false);

    if (BuildConfig.FIR_ENABLED) {
        FIR.init(this);
    }

    MaterializeSharedState.init(this);

    MobclickAgent.setDebugMode(BuildConfig.DEBUG);

    HashMap<String, String> event = new HashMap<>();
    event.put("launcher", MaterializeSharedState.getInstance().getLauncher());
    MobclickAgent.onEvent(this, "launcher", event);
}
 
Example 5
Source File: GApplication.java    From Alibaba-Android-Certification with MIT License 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    boolean debug=BuildConfig.DEBUG;
    LogCat.setDebug(debug);
    MobclickAgent.setDebugMode(debug);
    DataManager.getInstance().init(this);

}
 
Example 6
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 7
Source File: MobclickAgentProxy.java    From android-project-wo2b with Apache License 2.0 5 votes vote down vote up
public static void setDebugMode(boolean arg0)
{
	if (!DEBUG)
	{
		MobclickAgent.setDebugMode(arg0);
	}
}
 
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: BaseActivity.java    From iZhihu with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void onResume() {
    super.onResume();
    if (openAnalytics) {
        MobclickAgent.setDebugMode(true);
        MobclickAgent.onResume(context);
    }
}
 
Example 10
Source File: RLAnalyticsHelper.java    From Roid-Library with Apache License 2.0 5 votes vote down vote up
/**
 * @param context
 * @param isDebug
 */
public static void init(Context context, boolean isDebug) {
    com.umeng.common.Log.LOG = isDebug;
    MobclickAgent.setDebugMode(isDebug);
    MobclickAgent.setAutoLocation(true);
    MobclickAgent.setSessionContinueMillis(1000);
    // MobclickAgent.setUpdateOnlyWifi(false);
    // MobclickAgent.setDefaultReportPolicy(context,
    // ReportPolicy.BATCH_BY_INTERVAL, 5*1000);
    MobclickAgent.updateOnlineConfig(context);
    MobclickAgent.onError(context);
}
 
Example 11
Source File: MomentApplication.java    From Moment with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    MobclickAgent.setDebugMode(BuildConfig.DEBUG);
}
 
Example 12
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 13
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);
}