okno dialogowe alarmu po kolejnym oknie dialogowym alertu? Pierwszy brakuje! android

Mam działanie (ImportActivity), w którym użytkownik wprowadza pewne wartości dla miary i zapisuje je w bazie danych sqlite.

Gdy użytkownik kliknie przycisk Zapisz po zaimportowaniu do bazy danych, mam okno dialogowe alarmu (SAVEORBACK_DIALOG_ID), w którym użytkownik może opuścić to działanie lub zaimportować inną miarę. Działa idealnie.

Moim problemem jest, gdy próbuję pokazać inne okno dialogowe alertu (SMS_DIALOG_ID) tuż przed (SAVEORBACK_DIALOG_ID) alertem dialogowym. To dlatego, że chcę poprosić użytkownika o wysłanie SMS-a lub nie.

Kiedy to uruchomię, pokazuje mi totylko drugie okno ostrzegawcze(SAVEORBACK_DIALOG_ID) !!

Mam w działalności:

    static final int DATE_DIALOG_ID = 0;
static final int TIME_DIALOG_ID = 1;
static final int SAVEORBACK_DIALOG_ID = 2;
static final int SMS_DIALOG_ID = 3;

Nazywam ich z mojej działalności:

        // sms dialog(send sms to doctor?yes/no)
        showDialog(SMS_DIALOG_ID);

        // save or back dialog
        showDialog(SAVEORBACK_DIALOG_ID);

tutaj jest metoda onCreateDialog, w której mam moje okna dialogowe (usunąłem niektóre, aby były łatwiejsze do odczytania):

    @Override
protected Dialog onCreateDialog(int id) {
    switch (id) {
    case DATE_DIALOG_ID:
        return new DatePickerDialog(this, mDateSetListener, mYear, mMonth,
                mDay);
    case TIME_DIALOG_ID:
        return new TimePickerDialog(this, mTimeSetListener, mHour, mMinute,
                false);
    case SAVEORBACK_DIALOG_ID:
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setMessage(
                "Information saved successfully ! Add Another Info?")
                .setCancelable(false)
                .setPositiveButton("No",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int id) {
                                ImportActivity.this.finish();

                            }
                        })
                .setNegativeButton("Yes",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int id) {
                                dialog.cancel();
                                // get the new date
                                // Clearing the fields & update date/time
                                // textviews
                            }
                        });
        AlertDialog dialog = builder.create();
        return dialog;

        // case sms dialog
    case SMS_DIALOG_ID:
        AlertDialog.Builder builder2 = new AlertDialog.Builder(this);
        builder2.setMessage("High blood pressure ! Send sms to doctor?")
                .setCancelable(false)
                .setPositiveButton("No",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int id) {
                                dialog.cancel();
                                // do nothing - just continue
                            }
                        })
                .setNegativeButton("Yes",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int id) {
                                dialog.cancel();
                                // try to send sms - report status
                            }
                        });
        AlertDialog dialog2 = builder2.create();
        return dialog2;
        //

    }
    return null;
}

questionAnswers(1)

yourAnswerToTheQuestion