Which two of the following are true about the Dialog class ??

a. You can add a custom layout to a dialog using setContentView()
b. A dialog is displayed on the screen using method show()
c. Both (a) and (b)
d. It does not have a method to access the activity that owns it

View Answer

c. Both (a) and (b)