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("app.name.here").
Similarly I assume to receive it is now startingIntent.AddAction("app.name.here.SMS_Received") 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.
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("app.name.here").
Similarly I assume to receive it is now startingIntent.AddAction("app.name.here.SMS_Received") 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.