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

Jetpack Compose based Android interview and questions

Null safety based Kotlin interview questions and answers

CustomView based Android interview questions and answers