Medium
What happens if you call the code Thread.sleep(60*1000) from the GUI thread
and the user presses the "back" key on the terminal?
Author: Nicolas LaurentStatus: PublishedQuestion passed 368 times
Edit
0
Community Evaluations
Nordhal
07/09/2023
This is a trap because, it won't do nothing during the time freeze, and also raise an ANR but, if the user spends 60 seconds instead of clicking on the dialog, the UI will respond afterward
Similar QuestionsMore questions about Android