What is an Android plan?

I came across issues addressed to Android concepts in the foreground - https://stackoverflow.com/questions/20647168/android-how-to-find-if-any-app-is-running-in-foreground . I need to clarify the term "foreground" used in android. I think I have a working background definition in android - something that you don't see on the screen. It would be to the fore just to be what you can see and interact on the screen. As if I were playing a game with a bird-bird, the game itself (a bird jumping in pipes) would be in the foreground, because I can see it and interact with it. Based on this, the game would be in the background, because I do not see it?

+4
source share
3 answers

If the plan were just what you can see and interact with the screen.

IMHO yes, basically foreground is a state in which a user can interact with an application through an Android component, such as Activity or service. Take an example of a music player playing foreground music. Also, if you need to interact with the application through Actvity, the activity should be in the field. The user cannot interact with the application, even if the activity is visible, but not in the foreground.

+2
source

As said, simply put, if he interacts with him in the foreground (although the converse can not always be true).

To be precise:

. , :

  • , .
  • .
  • foreground , .

, . 1

+2

The initial service or activity that the user sees and interacts is said to be in the foreground state, and the system believes that this is what the user is actively aware of and therefore not a candidate for killing with low memory. Flappy bird activity is in the foreground because you can see it and interact with it.

Read more about this

+1
source

All Articles