We are a group of computer science student, currently working on a project as part of our Master.
Our problem is as follows.
We are working on an app for Android that requires devices to exchange small amounts of data. This needs to work without mobile connections or existing WiFi networks, e.g. using Bluetooth, WiFi direct etc.
We have looked at Bluetooth smart, which allows a device to run advertising mode sending 31 bytes of data, this would be more than adequate for our needs. But it is only supported in Android 5.0 so this seriously limits our availability.
Message confirmation and error checking is a plus but it is not a requirement. So an Udp connection is a possibility.
All the solutions that we can find either involves the user actively accepting a peer request, which is not acceptable since there could be hundreds of devices communicating with each other, or rooting the device.
In short what we are looking for is a way for a device to broadcast a small amount of data, around 24 bytes is the minimum. Without the user needing to do anything other than starting up the app.