Const
Readonly
ACTIVE: 2Readonly
BACKGROUND: 0An activity is in the background and not visible to the user.
Readonly
FOREGROUND: 1An activity is in the foreground, and it is visible to the user, but doesn't have focus (for example, covered by a dialog).
An activity is in the foreground and user can interact with it.