File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 33import android .app .Application ;
44import android .os .StrictMode ;
55import io .sentry .Sentry ;
6- import io .sentry .android .core .SentryAndroid ;
76
87/** Apps. main Application. */
98public 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 () {
You can’t perform that action at this time.
0 commit comments