Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Android:嘿,我正在尝试开发一个点对点的 Android 应用程序,它使用户能够在没有中央服务器的情况下通过 WiFi 交换文件(照片、视频或任何其他文件),即一个 android 设备将充当客户端和服务器。我是Android的新手,所以我想问从哪里开始?
这真的很不平凡。你必须:
了解如何建立 TCP 服务器/客户端流。
可能学习如何使用 UDP 广播来自动发现目标。
这个例子可能会有所帮助。