Team Leader Android Developer Question:

Tell me where can you define the icon for your Activity?

Tweet Share WhatsApp

Answer:

The icon for an Activity is defined in the manifest file.

Code
<activity android:icon="@drawable/app_icon" android:name=".MyTestActivity"></activity>
which means you 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”

Download Team Leader Android Developer PDF Read All 67 Team Leader Android Developer Questions
Previous QuestionNext Question
Tell us where will you declare your activity so the system can access it?Tell us how do you find any view element into your program?