B
B
bodusiacool2019-05-25 23:51:49
Java
bodusiacool, 2019-05-25 23:51:49

How not to close AlertDialog when changing Activity?

In the code, I first show the AlertDialog and immediately then launch a new activity, and the AlertDialog is hidden. Is it possible somehow not to hide it when starting a new activity?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-05-26
@zagayevskiy

Yes, you need to use DialogFragment for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question