While developing a sample android application i have constructed two activities 1)Activity 1 2)Activity 2
Now Activity 2 is the foreground activity whereas Activity
I can also recommend reading Activity and Task Design Guidelines. These are the user interface guidelines on how to behave when the Home button pressed, when the Back button is pressed, and so on.
It's not very technical, but it illustrates very well how your app should behave and what the OS expects.