Android applications:how to delete alertDialog

Asked 2 years ago, Updated 2 years ago, 96 views

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.

android

2022-09-30 21:12

1 Answers

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.


2022-09-30 21:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.