Android Interview Questions and Answers What is android?



Download 0.77 Mb.
View original pdf
Page56/62
Date17.12.2020
Size0.77 Mb.
#54986
1   ...   52   53   54   55   56   57   58   59   ...   62
Android Interview Questions
9. Sticky Broadcast Intents
Both normal and ordered broadcasts can also be performed in sticky mode. To send a broadcast Intent in sticky mode an Application must have been granted the BROADCAST_STICKY permission.


9.1 Sending A Sticky Broadcast Intent
A normal broadcast Intent can be sent in sticky mode using an implementation of the android.content.Context public abstract void sendStickyBroadcast(Intent intent) method. This works in the same way as the short-form method for sending a normal broadcast Intent.

Download 0.77 Mb.

Share with your friends:
1   ...   52   53   54   55   56   57   58   59   ...   62




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

    Main page