We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d760a2 commit e19e733Copy full SHA for e19e733
AlertDialog_with_try-catch.java
@@ -0,0 +1,14 @@
1
+import android.app.AlertDialog
2
+
3
+ try {
4
+ //To try code
5
+ } catch (Exception e) {
6
+ //region AlertDialog
7
+ AlertDialog.Builder msg = new AlertDialog.Builder(MainActivity.this);
8
+ msg.setTitle("Meldung");
9
+ msg.setMessage(e.getMessage());
10
+ msg.setCancelable(true);
11
+ AlertDialog msgDialog = msg.create();
12
+ msgDialog.show();
13
+ //endregion
14
+ }
0 commit comments