Android Interview Questions and Answers What is android?



Download 0.77 Mb.
View original pdf
Page39/62
Date17.12.2020
Size0.77 Mb.
#54986
1   ...   35   36   37   38   39   40   41   42   ...   62
Android Interview Questions
3.1 The receiver Element
3.1.1 Attributes
3.1.1.1 The enabled Attribute
The enabled attribute is optional. If present its value can be either true or false If the value is true then the System can create instances of the BroadcastReceiver and it can function normally. If the value is false then the System cannot create instances of the BroadcastReceiver and it is not functional. The default value is true. If the Application itself is not enabled then the BroadcastReceiver is not functional.

3.1.1.2 The exported Attribute
The exported attribute is optional. If present its value can be either true or false. If the value is true then the BroadcastReceiver can, if all other criteria are met, receive broadcast Intents from any Application. If the value is false then the BroadcastReceiver can only receive broadcast Intents from the registering Application or other Applications with the same User Id even if the other specified criteria are met. The default value is true if the registered BroadcastReceiver has one or more IntentFilters associated with it. Otherwise it is false.

Download 0.77 Mb.

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




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

    Main page