File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 11package io .sentry .samples .android ;
22
3- import android .content .ActivityNotFoundException ;
43import android .content .Intent ;
54import android .content .pm .ActivityInfo ;
65import android .content .res .Configuration ;
76import android .os .Bundle ;
87import android .os .Handler ;
9- import android .provider .MediaStore ;
108import androidx .appcompat .app .AlertDialog ;
119import androidx .appcompat .app .AppCompatActivity ;
1210import 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." ));
You can’t perform that action at this time.
0 commit comments