A user reports that your app's UI freezes for two seconds when opening a screen that parses a large JSON file. What is the best remedy?
-
A
Parse the JSON in a coroutine on a background dispatcher and post results to the UI
-
B
Show a Toast asking the user to wait
-
C
Parse the JSON inside onDraw()
-
D
Increase the ANR timeout in the manifest