Java Code Examples for com.flurry.android.FlurryAgent#setLogEnabled()

The following examples show how to use com.flurry.android.FlurryAgent#setLogEnabled() . 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: FlurryAnalyticsHelper.java    From q-municate-android with Apache License 2.0 5 votes vote down vote up
public static void pushAnalyticsData(Context context) {
    // init Flurry
    FlurryAgent.setLogEnabled(true);
    FlurryAgent.init(context, "P8NWM9PBFCK2CWC8KZ59");

    Map<String, String> params = new HashMap<>();

    //param keys and values have to be of String type
    params.put("app_id", QBSettings.getInstance().getApplicationId());
    params.put("chat_endpoint", QBSettings.getInstance().getChatEndpoint());

    //up to 10 params can be logged with each event
    FlurryAgent.logEvent("connect_to_chat", params);
}
 
Example 2
Source File: LetvApplication.java    From letv with Apache License 2.0 4 votes vote down vote up
public void onCreate() {
    super.onCreate();
    PluginHelper.getInstance().applicationOnCreate(getBaseContext());
    LogInfo.log("test_yang", "application init ----->begining");
    StatisticsUtils.init();
    LogInfo.log("test_yang", "application init ----->begining");
    initChannel();
    initOriginalChannelFile();
    StatisticsUtils.initDoubleChannel();
    FacebookSdk.sdkInitialize(getApplicationContext());
    LogInfo.log("test_yang", "application init ----->begining");
    boolean z = !LetvUtils.is60() || PreferencesManager.getInstance().isApplyPermissionsSuccess();
    JarUtil.sHasApplyPermissionsSuccess = z;
    if (isMainProcess()) {
        LogInfo.log("test_yang", "application init ----->begining");
        LogInfo.log("plugin", "主进程调用initPlugin...");
        JarUtil.initPlugin(this, new OnPluginInitedListener(this) {
            final /* synthetic */ LetvApplication this$0;

            {
                if (HotFix.PREVENT_VERIFY) {
                    System.out.println(VerifyLoad.class);
                }
                this.this$0 = this$0;
            }

            public void onInited() {
                this.this$0.mIsPluginInitedSuccess = true;
                if (PluginInitedCallback.mPluginInitedListener != null) {
                    PluginInitedCallback.mPluginInitedListener.onInited();
                }
                PluginInitedCallback.mPluginInitedListener = null;
            }
        });
    }
    if (isPipProcess()) {
        LogInfo.log("zhuqiao", "call init pip");
        initLetvMediaPlayerManager();
        setVType();
    }
    LogInfo.log("test_yang", "application init ----->begining");
    LogInfo.log("test_yang", "application init ----->begining");
    if (!hasInited()) {
        FlurryAgent.setLogEnabled(false);
        FlurryAgent.init(this, LetvConfig.getFlurryKey());
        if (LetvUtils.is60()) {
            DownloadManager.stopDownloadService();
        }
    }
    LogInfo.log("test_yang", "application init ----->end");
}
 
Example 3
Source File: LoopApplication.java    From Loop with Apache License 2.0 4 votes vote down vote up
private void initializeFlurry(){
    FlurryAgent.setLogEnabled(false);

    FlurryAgent.init(this, getString(R.string.flurry_api_key));
}
 
Example 4
Source File: Analytics.java    From ExtensionsPack with MIT License 4 votes vote down vote up
public static void setLogEnabled(boolean logEnabled)
{
  FlurryAgent.setLogEnabled(logEnabled);
}