Question from the Android test

What happens when an Android app is not responding?

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 359 times
Edit
0
Community Evaluations
developer avatar
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
developer avatar
Auteur anonyme
07/11/2023
Hello Nordhal, the question says that the use will DO something (click on back button)