Android Interview Questions and Answers What is android?



Download 0.77 Mb.
View original pdf
Page45/62
Date17.12.2020
Size0.77 Mb.
#54986
1   ...   41   42   43   44   45   46   47   48   ...   62
Android Interview Questions
7. Broadcasting
A normal broadcast Intent can be sent using an implementation of the android.content.Context public abstract void sendBroadcast(Intent intent, String receiverPermission) method. If the receiverPermission argument is non-null then a BroadcastReceiver cannot receive the broadcast Intent being sent unless it was declared by an Application which has been granted the given permission. The method is asynchronous. It returns immediately, and the delivery of the broadcast Intent to the set of eligible BroadcastReceivers executes independently of the method’s caller. If it is not necessary to specify a permission then an implementation of the android.content.Context

public abstract void sendBroadcast(Intent intent) can be used instead.

Download 0.77 Mb.

Share with your friends:
1   ...   41   42   43   44   45   46   47   48   ...   62




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

    Main page