Android Question BroadcastReceiver basics

Discussion in 'Android Questions' started by CurtisC, Jul 12, 2015.

  1. CurtisC

    CurtisC Member Licensed User

    Can anyone help me understand the basics of BroadcastRecievier, most information is concentrated on receive and 10 levels above the basics.

    I have dealt some with intents and an intent is directed at an activity. I believe Broadcasts are also sent to specific activities, correct? Is it BroadcastReceiver.sendBroadcast("").

    Similarly I assume to receive it is now startingIntent.AddAction("") since Action is not among the options.

    Broadcasts such as a log in require multiple parts but I saw only 1 reference and that was for receive, and the only time I saw references regarding Extras in this case Get and Has. Since broadcasts are structured and known I would assume string arrays could be used but I don not know how? How do you broadcast multiple part commands?

    Received messages must all have a precursors so the receiving app knows the category yet I did not see that addressed in the tutorials while it would seem essential.

    Appreciate any and all help.
  2. Erel

    Erel Administrator Staff Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice