Team Leader Android Developer Question:
Download Job Interview Questions and Answers PDF
Tell me where can you define the icon for your Activity?
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”
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 Interview Questions And Answers
PDF
Previous Question | Next 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? |