Android Interview Questions and Answers What is android?



Download 0.77 Mb.
View original pdf
Page60/62
Date17.12.2020
Size0.77 Mb.
#54986
1   ...   54   55   56   57   58   59   60   61   62
Android Interview Questions
9.6.2 The onReceive() Method
A dynamically registered BroadcastReceiver can determine whether it is being invoked on a sticky broadcast Intent by calling the public final boolean isInitialStickyBroadcast() method. If it is then the behaviour of some of the methods defined by the BroadcastReceiver class for use with ordered broadcast Intents is slightly different. The isOrderedBroadcast()
method always returns false The methods for setting result data do not throw RuntimeExceptions, they are simply no-ops The abortBroadcast()
method does not throw a RuntimeException, it is simply a no-op

Download 0.77 Mb.

Share with your friends:
1   ...   54   55   56   57   58   59   60   61   62




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

    Main page