A broadcast is a one-to-many message passing interface. It is usually used in the context of a network programming or event-driven programming.
Questions tagged [broadcast]
1905 questions
11
votes
2 answers
Using LocalBroadcastManager for 'sticky' broadcast
Am I correct in thinking that I cannot send 'sticky' broadcasts using LocalBroadcastManager ?
If so this seems very short-sighted particularly if an app uses Fragments that can be swapped in and out during the app lifecycle and relies on broadcast…

D-Dᴙum
- 7,689
- 8
- 58
- 97
10
votes
4 answers
How do I broadcast video from my webcam with Html5?
I am trying to build a simple web page that has access to my webcam and is able to broadcast the video taken from my webcam.
I am new to Html5 and I suppose that it is a complex task to build such a web page from scratch. I just want some…

yildirimyigit
- 3,013
- 4
- 25
- 35
10
votes
0 answers
Listening on a specific port for incoming data
In order to scan a WiFi network for other devices, I send a broadcast with my application a a specific port to all IPs in the WiFi network.
Therefore the application, if it's running on a device in the WiFi network, has to respond to this…

Gingerbread123321
- 239
- 5
- 21
10
votes
2 answers
Dart - Send an UDP broadcast
I'm asking for help since it seems I cannot find a way to send an UDP broadcast inside a local network using Dart.
So far I managed to communicate using UDP with RawDatagramSocket. I'm able to send a message to a specific address.
What I'm not able…

Alessandro
- 1,046
- 1
- 11
- 19
10
votes
0 answers
How to get broadcast state Steam API
I have a list of "followed" steam users and I'm trying to find an endpoint to poll which ones are currently broadcasting. I was initially trying to determine this based on some properties of a Steam User namely:
persona state
profile…

alexgophermix
- 4,189
- 5
- 32
- 59
10
votes
3 answers
UDP Broadcast or IP Multicast?
If you had to implement a network broadcast, would you use UDP broadcast or IP multicast in a new application? Why?
What are the benefits and drawbacks you encountered with either method? (Especially concerning problems with VPNs, different…

Thorsten79
- 10,038
- 6
- 38
- 54
10
votes
2 answers
Spark broadcasted variable returns NullPointerException when run in Amazon EMR cluster
The variables I share via broadcast are null in the cluster.
My application is quite complex, but I have written this small example that works flawlessly when I run it locally, but it fails in the cluster:
package…

Gonzalo Pezzi
- 595
- 3
- 13
10
votes
2 answers
scope.$on is not working when created inside a directive
I have created a directive for my application which is mentioned in the following question
How do you serve a file for download with AngularJS or Javascript? Directive code is as like below
appModule.directive('fileDownload', function…

Kanagu
- 606
- 3
- 9
- 17
10
votes
1 answer
How to broadcast intent with extras through ADB shell?
I am trying to send the BATTERY_CHANGED intent through the ADB shell. So far I only managed to send the intent with no information:
am broadcast -a android.intent.action.BATTERY_CHANGED
I created an app witch listens for this intent and here is…

Valyo
- 103
- 1
- 1
- 5
10
votes
1 answer
Getting wifi broadcast address in Android wifi hotspot
I'm developing an app that uses wifi to broadcast UDP messages between all the mobiles that are in the same network that have my app.
I managed to send/receive packets from many cellphones having an external AP, that's my router.
But given the case…

olivarra1
- 3,269
- 3
- 23
- 34
9
votes
4 answers
android: how to listen to "sd card removed unexpectedly"
I have a program that uses content from sd-card. I want to listen to different states like sd-card mounted or sd-card removed unexpectedly. How can I do so. An example would be of a great help.
Thanks to all

Farhan
- 3,206
- 14
- 49
- 62
9
votes
1 answer
Can a broadcastReceiver catch multiple broadcasts?
I am trying to create multiple proximity alerts but I cant get it to work...
I think that the broadcast receiver gets overwritten and thus is handling only the last broadcast. So if I had two points close by only the one whose intent was created…

mixkat
- 3,883
- 10
- 40
- 58
9
votes
3 answers
How to implement uploading in broadcast upload extension (iOS)?
Is anybody know is there an ability to upload frame buffers from Broadcast Upload Extension to the host app or I should load them directly to back-end ? My goal to intercept frame buffers from replay kit, send them to my application and broadcast…

Seliver
- 343
- 1
- 2
- 13
9
votes
2 answers
Linux ping broadcast switch
When using ping on virtually every UNIX system available, pinging the broadcast address is simple:
$ ping 192.168.11.255
However, when this is done on Linux, a non-standard (and continually annoying!) response occurs:
$ ping 192.168.11.255
Do you…

Mei
- 1,129
- 1
- 11
- 20
9
votes
2 answers
How to do UDP broadcast using chrome.sockets.udp API?
I am developing a Chrome extension and I want to broadcast a UDP packet on the local network.
I studied this Chrome API.
chrome.sockets.udp.create({}, function(s){
chrome.sockets.udp.bind(s.socketId, address, 0, function(ret){
…

onemouth
- 2,252
- 16
- 31