如何“分享"android应用程序在技术上可行吗? [英] How the "SHAREit" android application works technically?

查看:46
本文介绍了如何“分享"android应用程序在技术上可行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用"SHAREit"之类的wi-fi在android上构建数据共享应用程序,但我没有从哪里开始.

因此,如果我对"SHAREit"的技术概念有个清晰的了解,那么理解它将会非常有效率.

  1. 当我们要发送文件时,我们看到了可用接收器设备的名称.
    • 该名称显示为SSID还是其他?
    • 我们如何广播姓名和其他信息以在发送方设备上显示?
  2. 当我选择要发送文件的设备时,会发生什么?
  3. 实际上我可以使用的 API 是什么,请简单解释一下.

请我可以运行以测试的所有资源和链接.

解决方案

使用Android Wi-Fi P2P库和

So if any clear me the technical concept of "SHAREit" it was very much efficient to understand.

  1. When we want to send a file we saw the available receiver device with name.
    • Is the name displayed as SSID or other?
    • How we broadcast name and other info to display on sender device?
  2. When I select a device to send a file then what happens?
  3. What API actually I can use to and what for please explain me simply.

Please all resources and links that I could run to test.

Use the Android Wi-Fi P2P libaries, and start with the doc on this page. It tells you how use Wi-Fi P2P for service discovery, which takes care of item 1 in your requirements. Basically, you have each device transmit a DNS-SD TXT that can contain user ID info, etc. Devices can see its contents without having to establish a socket, which is what you will later do to accomplish item 2 in your requirements.

这篇关于如何“分享"android应用程序在技术上可行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆