For a detailed perspective on the structure of an Android application and how activities behave, please read the ...
developer.android.com