There was no problem when I ran it on the emulator, but when I tested it by connecting my smartphone, I got an error on the dial side. It turns out that "dialog.dismiss