May 2022
Intermediate to advanced
688 pages
20h 12m
English
Prior to Android 7.0 Nougat, most activities spent very little time in the started state. Instead, activities passed through the started state quickly on their way to either the resumed state or the created state. Because of this, many developers assumed they only needed to update their UI when their activity was in the resumed state. It was common practice to use onResume() and onPause() to start or stop any ongoing updates related to the UI (such as animations or data refreshes).
When multi-window mode was introduced in Nougat, it broke the assumption that resumed activities were the only fully visible activities. This, in turn, broke the intended behavior of many apps. Now, ...
Read now
Unlock full access