diff --git a/applicationinsights-android/src/main/java/com/microsoft/applicationinsights/library/ApplicationInsights.java b/applicationinsights-android/src/main/java/com/microsoft/applicationinsights/library/ApplicationInsights.java index 1865e1a..f9f78d1 100644 --- a/applicationinsights-android/src/main/java/com/microsoft/applicationinsights/library/ApplicationInsights.java +++ b/applicationinsights-android/src/main/java/com/microsoft/applicationinsights/library/ApplicationInsights.java @@ -90,20 +90,7 @@ public enum ApplicationInsights { this.config = new ApplicationInsightsConfig(); } - /** - * Configure Application Insights - * Note: This should be called before start - * - * @param context the context associated with Application Insights - * @param context the application context associated with Application Insights - * @warning auto-collection of lifecycle-events is disabled when using this method - * @deprecated This method is deprecated: Use setup(Context context, Application application) instead. - */ - public static void setup(Context context) { - ApplicationInsights.INSTANCE.setupInstance(context, null, null); - } - - /** + /** * Configure Application Insights * Note: This should be called before start * @@ -113,19 +100,6 @@ public static void setup(Context context, Application application) { ApplicationInsights.INSTANCE.setupInstance(context, application, null); } - /** - * Configure Application Insights - * Note: This should be called before start - * - * @param context the application context associated with Application Insights - * @param instrumentationKey the instrumentation key associated with the app - * @warning auto-collection of lifecycle-events is disabled when using this method - * @deprecated This method is deprecated: Use setup(Context context, Application application) instead. - */ - public static void setup(Context context, String instrumentationKey) { - ApplicationInsights.INSTANCE.setupInstance(context, null, instrumentationKey); - } - /** * Configure Application Insights * Note: This should be called before start @@ -241,26 +215,6 @@ public static void sendPendingData() { Channel.getInstance().synchronize(); } - /** - * Enable auto page view tracking as well as auto session tracking. This will only work, if - * {@link ApplicationInsights#telemetryDisabled} is set to false. - * - * @param application the application used to register the life cycle callbacks - * @deprecated This method is deprecated: Use setAutoCollectionDisabled instead. - */ - public static void enableActivityTracking(Application application) { - if (!isRunning) { //TODO fix log warning - InternalLogging.warn(TAG, "Could not set activity tracking, because " + - "ApplicationInsights has not been started, yet."); - return; - } - if (!INSTANCE.telemetryDisabled) { - if(application != null && Util.isLifecycleTrackingAvailable()){ - LifeCycleTracking.registerActivityLifecycleCallbacks(application); - } - } - } - /** * Enable auto page view tracking. This will only work, if ApplicationInsights has been setup * with an application. This method should only be called after