「onCreateDialog」メソッドを使用して、アクティビティからアラート ダイアログを開いています。
protected Dialog onCreateDialog(int id) {
Dialog dialog = null;
switch(id) {
case DIALOG_PASSWORD_VERIFICATION:
LayoutInflater factory = LayoutInflater.from(this);
final View passwordDialog = factory.inflate(R.layout.password, null);
AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.setTitle("Please enter your password");
alert.setView(passwordDialog);
alert.setCancelable(false);
alert.create();
alert.setPositiveButton("Ok", new PasswordDialogListenerOk(
passwordDialog, getApplicationContext()));
alert.setNegativeButton("Cancel", new PasswordDialogListenerOk(
passwordDialog, getApplicationContext()));
alert.show();
break;
default:
dialog = null;
}
return dialog;
}
すべてが正常にスムーズに機能しますが、ACTIVITY に戻る場所がわかりません。ダイアログは消えますが、ダイアログが閉じた後のアクティビティの戻りポイントはどこですか?