Skip to content

Commit 84dfbed

Browse files
committed
Revert crash button
1 parent d3f8605 commit 84dfbed

File tree

1 file changed

+1
-9
lines changed
  • sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
package io.sentry.samples.android;
22

3-
import android.content.ActivityNotFoundException;
43
import android.content.Intent;
54
import android.content.pm.ActivityInfo;
65
import android.content.res.Configuration;
76
import android.os.Bundle;
87
import android.os.Handler;
9-
import android.provider.MediaStore;
108
import androidx.appcompat.app.AlertDialog;
119
import androidx.appcompat.app.AppCompatActivity;
1210
import io.sentry.Attachment;
@@ -69,13 +67,7 @@ protected void onCreate(Bundle savedInstanceState) {
6967

7068
binding.crashFromJava.setOnClickListener(
7169
view -> {
72-
// throw new RuntimeException("Uncaught Exception from Java.");
73-
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
74-
try {
75-
startActivityForResult(takePictureIntent, 1);
76-
} catch (ActivityNotFoundException e) {
77-
// display error state to the user
78-
}
70+
throw new RuntimeException("Uncaught Exception from Java.");
7971
});
8072

8173
binding.sendMessage.setOnClickListener(view -> Sentry.captureMessage("Some message."));

0 commit comments

Comments
 (0)