title: How to call AlertDialog inside AlertDialog?
body: <p>I have this code:</p>
  
  <pre><code>public class Example
  {
   String sp,st;
   SQLiteDatabase database, database2;
   void func()
   {
   new AlertDialog.Builder(view.getContext())
      .setIcon(android.R.drawable.ic_dialog_alert)
      .setTitle("Confirm")
      .setMessage("Are you sure?")
      .setPositiveButton("Yes", new DialogInterface.OnClickListener()
      {
      @Override
      public void onClick(DialogInterface dialog, int which) {
        String st = editTextSt.getText().toString();
        String sp = editTextSp.getText().toString();
        database2 = new SQLiteDbHelper(this);
        database = database2.getWritableDatabase();
        ContentValues values = new ContentValues();
        values.put(SQLiteDbHelper.COLUMN_NAME_SP, sp);
        values.put(SQLiteDbHelper.COLUMN_NAME_ST, st);
        long insertId = database.insert(SQLiteDbHelper.TABLE_NAME, null, values);
        //I would like to call it here
      }})
      .setNegativeButton("No", null)
      .show();
  
   }
  </code></pre>
  
  <p>I would like to call this AlertDialog inside the AlertDialog above:</p>
  
  <pre><code>new AlertDialog.Builder(this)
                  .setMessage("Saved!")
                  .setNeutralButton("OK", null)
                  .show();
  </code></pre>
  
  <p>How can I do it?</p>
  
  <p>If I just put it where I want to, I get error that "The constructor AlertDialog.Builder(new DialogInterface.OnClickListener(){}) is undefined".</p>