I wonder what is the right way to implement this? Could anybody advice whether my solution is correct?
So:
Is it the right approach? or there is smth. that is done by Android and I am doing some redundant actions.
Thanks
Yes, that is the right way to do it. Dialogs don't extend Activitys, but they work very similarly and you've just described exactly the correct "flow" for saving/restoring states for either.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With