Modes in which application runs

Foreground: when you are using the application.
Background: when you have the application minimized but not closed and you can restore it where you left it before minimizing.
Back-background: when you have closed your application but there are a service generated by the application that is listening some specific events (i.e. waiting push notifications).