Projects
View on GitHub
gpfduoduo/AnyShareOfAndroid
About
Xigua File Transfer, modeled after file-transfer apps such as SHAREit and 360 File Transfer. It transfers files over a local network; when no local network is available, the receiver creates a hotspot and the sender connects to it to transfer files such as the sender’s app, audio and video, and images.
Productivity & AutomationMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAnyShareOfAndroid
仿茄子快传 或者 360文件传输
- 在局域网内进行文件(发送方的app、图片等文件,项目中只是进行了手机中的第三方app和手机图片的)的传输。
- 如果没有接收方建立热点,发送方接入热点,然后进行文件的传输。
- 添加android与pc之间的文件传输,通过在android设备中实现http server来完成(这样不需要在pc中安装应用,只需要浏览器就可以方便完成操作)
实现原理:
- 设备发现:通过udp向255.255.255.255发送广播包
- 文件传输:通过NIO socket。
- android下httpServer的实现通过apache的httpcore。
效果图
需要两部手机,连接在同一个wifi环境下,会相互发现,并且通过点击发现后的对方,建立连接,进而进行文件的传输。

引用库
- 雷达扫描图 作者:本人
- compile 'com.android.support:appcompat-v7:22.2.0'
- compile 'com.android.support:design:22.2.0'
- compile 'com.android.support:support-v4:22.2.0'
- compile 'com.github.bumptech.glide:glide:3.5.2'
- compile 'com.android.support:support-v4:22.2.0'
- compile 'com.android.support:recyclerview-v7:22.+'
- compile 'com.github.bumptech.glide:glide:3.5.2'
- compile project(':randomtextview')
- compile project(':rippleview')
- compile project(':rippleoutlayout')
- compile project(':p2pmanager')
- compile project(':httpServer') 作者本人
感谢
杨蔚 及其 儿子
Explore related projects
Loading…