通过 wifi 从一台 android 设备向另一台设备发送文本
send text from one android device to another through wifi
我正在尝试制作一个 apk 以使用我公司的 wifi 连接在我们之间进行通信,但我不知道如何与其他设备连接
Adding Network Service Discovery (NSD) to your app allows your users
to identify other devices on the local network that support the
services your app requests. This is useful for a variety of
peer-to-peer applications such as file sharing or multi-player gaming.
Android's NSD APIs simplify the effort required for you to implement
such features.
https://developer.android.com/training/connect-devices-wirelessly/nsd.html
我正在尝试制作一个 apk 以使用我公司的 wifi 连接在我们之间进行通信,但我不知道如何与其他设备连接
Adding Network Service Discovery (NSD) to your app allows your users to identify other devices on the local network that support the services your app requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming. Android's NSD APIs simplify the effort required for you to implement such features.
https://developer.android.com/training/connect-devices-wirelessly/nsd.html