You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (oldHandler != null && oldHandler.getClass().getName().startsWith(CAOC_HANDLER_PACKAGE_NAME)) {
101
-
Log.e(TAG, "pingMeLive was already installed, doing nothing!");
102
-
} else {
103
-
if (oldHandler != null && !oldHandler.getClass().getName().startsWith(DEFAULT_HANDLER_PACKAGE_NAME)) {
104
-
Log.e(TAG, "IMPORTANT WARNING! You already have an UncaughtExceptionHandler, are you sure this is correct? If you use a custom UncaughtExceptionHandler, you must initialize it AFTER pingMeLive! Installing anyway, but your original handler will not be called.");
105
-
}
97
+
if (oldHandler != null && oldHandler.getClass().getName().startsWith(CAOC_HANDLER_PACKAGE_NAME)) {
98
+
Log.e(TAG, "pingMeLive was already installed, doing nothing!");
99
+
} else {
100
+
if (oldHandler != null && !oldHandler.getClass().getName().startsWith(DEFAULT_HANDLER_PACKAGE_NAME)) {
101
+
Log.e(TAG, "IMPORTANT WARNING! You already have an UncaughtExceptionHandler, are you sure this is correct? If you use a custom UncaughtExceptionHandler, you must initialize it AFTER pingMeLive! Installing anyway, but your original handler will not be called.");
Log.e(TAG, "An unknown error occurred while installing pingMeLive, it may not have been properly initialized. Please report this as a bug if needed.", t);
143
143
}
144
-
} catch (Throwablet) {
145
-
Log.e(TAG, "An unknown error occurred while installing pingMeLive, it may not have been properly initialized. Please report this as a bug if needed.", t);
146
144
}
147
-
}
145
+
else {
146
+
147
+
if (APIKEY == null || APIKEY.trim().length() <= 0) {
148
+
Log.e(TAG, "API KEY needed check your application class");
149
+
Log.e(TAG, "pingMeLive not installed.");
150
+
return;
151
+
}
152
+
153
+
if (appId == null || appId.trim().length() <= 0) {
154
+
Log.e(TAG, "appId needed check your application class");
155
+
Log.e(TAG, "pingMeLive not installed.");
156
+
return;
157
+
}
158
+
148
159
160
+
Log.i(TAG, "pingMeLive has been installed, But without error events, to activate that setErrorEventEnabled(true) in your application class.");
0 commit comments