In Android every dialog is shown using Builder for that dialog class. The Builder is the static inner class in these classes. So why the Builder is given the control to build the dialog? Thanks in advance.
In Android every dialog is shown using Builder for that dialog class. The Builder
Share
It is just a helper class which allows you to call methods in a chain and set positive/negative buttons easily. For example:
AlertDialog.Builder
AlertDialog
So now you may see the difference in ease of creating same thing with two different ways.