The icon for an activity is defined in the manifest file.
Syntax:
This means that we have to open AndroidManifest.xml. Right under the root 'manifest' node of the XML, we can see the 'application' node. We have added this attribute to 'application'. (The 'icon' in '@drawable/icon' refers to the file name of the icon.)
android:icon="@drawable/icon"
Get a detailed understanding of how to build Android game applications!