The Android application is using AlertDialog to issue an alert dialog, but I would like to automatically delete the alert dialog after a certain period of time.
What kind of program would this be?
Please let me know if you know.
As this is a complex question, I would like to break down the individual details, but
This can be achieved using the CountDownTimer
class.
You can use the dismiss
method (*).
You can check it with the null
or the isShowing
method (*).
< AlertDialog
is a derived class of Dialog
.
© 2024 OneMinuteCode. All rights reserved.