In activity, a dialog box is created through the Dialog class, assigning a pre-prepared layout and buttons. What actions do I need to take to save the contents of the dialog and display when turning?

  • one
    пользователей? And insult why? :) - Flippy
  • I apologize if I hurt anyone's feelings, although I do not see any offensive overtones - cosmic_M
  • 2
    @cosmic_M, try to make through DialogFragment. There, like the usual fragment, there are methods for saving and restoring state. The usual dialogue does not have them - YuriySPb
  • You need to clearly formulate the question, or rather answer, whether you have the opportunity to use DialogFragment instead of Dialog. - Shwarz Andrei
  • Today I will alter under DialogFragment and test ... I understand that in MyDialog (a child class of DialogFragment) you need to specify in onCreate () {... setRetainInstance (true);}. That's just not clear to me: will my dialogue automatically join the host and be displayed when the screen is rotated, or will it be necessary to show it through the show () method with tags? - cosmic_M

0