Android activity difference between active and running
-
12-12-2019 - |
문제
I was reading the Android documentation on the Android developer website and I read the following near the Android Activity Lifecycle:
If an activity in the foreground of the screen (at the top of the stack), it is active or running.
What is the difference between active and running? It says that they are both on the foreground of the screen, so I can't see the real difference between those states.
해결책
An activity can still be running, but it is not active, whenever it is still visible on the screen, but partially obscured by another activity.
제휴하지 않습니다 StackOverflow