Working alertdialog and num generator dialog.
Connected number selector dialog to resultactivity.