Android Interview Questions and Answers What is android?



Download 0.77 Mb.
View original pdf
Page40/62
Date17.12.2020
Size0.77 Mb.
#54986
1   ...   36   37   38   39   40   41   42   43   ...   62
Android Interview Questions
3.1.1.3 The icon Attribute
The icon attribute is optional. If present it should specify a Drawable resource. This will be used by the System to visually identify the BroadcastReceiver to the User if necessary.
3.1.1.4 The label Attribute
The label attribute is optional. If present it should specify a String resource. This will be used by the System to identify the BroadcastReceiver to the User if necessary.
3.1.1.5 The name Attribute
The name attribute is mandatory. It specifies the name of the BroadcastReceiver class. The documentation for this attribute states

This should be a fully qualified class name (such as, “com.example.project.ReportReceiver”). However, as a shorthand, if the first character of the name is a period (for example, “. ReportReceiver”), it is appended to the package name specified in the element. Which is true as far as it goes. By default the Android ADT Eclipse plugin actually generates receiver elements that look like this
The attribute value is simply the unqualified class name and this also works.

Download 0.77 Mb.

Share with your friends:
1   ...   36   37   38   39   40   41   42   43   ...   62




The database is protected by copyright ©ininet.org 2024
send message

    Main page