App in foreground:
The app is the one that is currently in use by the user.
App in background:
This app is running in the background and will be activated when it gets a notification or when you switch to it.