code: public static void showAlert(Context context, String title, String text) {
          Builder alertBuilder = new Builder(context);
          alertBuilder.setTitle(title);
          alertBuilder.setMessage(text);
          alertBuilder.create().show();
      }
docs: Display a simple alert dialog with the given text and title.
  
  @param context
  Android context in which the dialog should be displayed
  @param title
  Alert dialog title
  @param text
  Alert dialog message