Broadcasting a service to Wifi network in Android
I am working on Android project in which i am syncing contacts and calendar with Mac via local WiFi connection and Here I have to notify WiFi network about the device existence(ie, broadcasting advertisement ) so that When Mac performs scan-devices operation my device must be detected,. so for that i need to broadcast a service to WiFi network,. can anybody help me how i can achieve this...?
and the broadcasting service must contain Android device information,. so which type of packet will it be...?
You can use android-mdns
for broadcasting. for more information have a look at https://github.com/changyy/android-mdns.
上一篇: iOS:按设备发现Wifi网络广播
下一篇: 在Android中向Wifi网络广播服务