Answer the question
In order to leave comments, you need to log in
How to restart Activity after AlertDialog?
I have an Activity with information from a DB. By clicking on the button, an AlertDialog appears, where the data in the database changes, and I need to update the data on the Activity after exiting the dialog. How to do it?
Answer the question
In order to leave comments, you need to log in
Add a method that updates the data and when you click on the AlertDialog button or on the onCanceled listener ... call this method and don't even try to restart the Activity for this, this is a perversion
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question