you can user Timer
class to set time out period.
https://developer.android.com/reference/java/util/Timer.html
Timeout in HTMLCleaner of AsyncTask
-
01-07-2022 - |
Question
I using HTMLCleaner in AsyncTask, for parse site. How to set timeout in HTMLCleaner or timeout AsyncTask? How to make a break?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow