Different way of send broadcast to other applications

  • We could send broadcast to other applications in 3 ways
  1. sendOrderedBroadcast(Intent, String) method sends broadcasts to one receiver at a time.
  2. sendBroadcast(Intent) method sends broadcasts to all receivers in an undefined order.
  3. LocalBroadcastManager.sendBroadcast method sends broadcasts to receivers that are in the same app as the sender.

Comments

Popular posts from this blog

Kotlin Some important unsorted interview questions and answers

A Reusable MVVM API Call Pattern in Jetpack Compose

Most Developers Build Offline-First Apps Wrong — Here's What They Miss with Room