Skip to content

Commit 0cb8d00

Browse files
committed
Reverse sample changes
1 parent 43b5ebc commit 0cb8d00

File tree

1 file changed

+13
-7
lines changed
  • sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android

1 file changed

+13
-7
lines changed

sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MyApplication.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import android.app.Application;
44
import android.os.StrictMode;
55
import io.sentry.Sentry;
6-
import io.sentry.android.core.SentryAndroid;
76

87
/** Apps. main Application. */
98
public class MyApplication extends Application {
@@ -14,12 +13,19 @@ public void onCreate() {
1413
strictMode();
1514
super.onCreate();
1615

17-
// Enable shake gesture to open feedback form (for testing)
18-
SentryAndroid.init(
19-
this,
20-
options -> {
21-
options.getFeedbackOptions().setUseShakeGesture(true);
22-
});
16+
// Example how to initialize the SDK manually which allows access to SentryOptions callbacks.
17+
// Make sure you disable the auto init via manifest meta-data: io.sentry.auto-init=false
18+
// SentryAndroid.init(
19+
// this,
20+
// options -> {
21+
// /*
22+
// use options, for example, to add a beforeSend callback:
23+
//
24+
// options.setBeforeSend((event, hint) -> {
25+
// process event
26+
// });
27+
// */
28+
// });
2329
}
2430

2531
private void strictMode() {

0 commit comments

Comments
 (0)