Android - communicating between two devices

后端 未结 8 1131
栀梦
栀梦 2020-11-29 00:59

What is the best way for an Android app installed on two devices to communicate with each other? Can the devices connect directly without using text messaging?

8条回答
  •  無奈伤痛
    2020-11-29 02:02

    The android NSD API is meant to do the exact same thing you are trying to achieve! The example bundled with SDK is self explanatory!

    please check:

    Android NSD API example

提交回复
热议问题