When you click on app icon android package manager will check manifest file and find launcher activity which has intent filter for that and will search for action as Main and category as default. When it find that detail it will launch that main activity.
2
solved How Android launcher works? [closed]