We use this project to listen for broadcasted UDP messages. Those UDP messages are broadcasted to the whole network (using 255.255.255.255 IP mask.
For some Android devices, this works fine, for others it does not. I created a blank native App to analyse this problem further, and it seems that it works, when the MulticastLock is acquired.
I scanned the source code, it seems that the MulticastLock is acquired when adding a membership.
But I did not find out how to use this, and how to add a membership as a UDP listening App. Which multicastAddress I am supposed to put there?
Do you have an example or some hints how to do this? Is this already implemented in 4.1.7?
We use this project to listen for broadcasted UDP messages. Those UDP messages are broadcasted to the whole network (using
255.255.255.255IP mask.For some Android devices, this works fine, for others it does not. I created a blank native App to analyse this problem further, and it seems that it works, when the
MulticastLockis acquired.I scanned the source code, it seems that the
MulticastLockis acquired when adding a membership.But I did not find out how to use this, and how to add a membership as a UDP listening App. Which
multicastAddressI am supposed to put there?Do you have an example or some hints how to do this? Is this already implemented in 4.1.7?