Giter Site home page Giter Site logo

feihong247 / anyshareofandroid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hezaijin/anyshareofandroid

0.0 1.0 0.0 1.39 MB

西瓜快传 仿照市场上的茄子快传 或者 360文件传输 在局域网内,如果没有局域网,接收方建立热点,发送发接入热点,进行文件(发送方的app、音视频、图片等文件)

Java 100.00%

anyshareofandroid's Introduction

AnyShareOfAndroid

仿茄子快传 或者 360文件传输

  • 在局域网内进行文件(发送方的app、图片等文件,项目中只是进行了手机中的第三方app和手机图片的)的传输。
  • 如果没有接收方建立热点,发送方接入热点,然后进行文件的传输。
  • 添加android与pc之间的文件传输,通过在android设备中实现http server来完成(这样不需要在pc中安装应用,只需要浏览器就可以方便完成操作)

实现原理:

  • 设备发现:通过udp向255.255.255.255发送广播包
  • 文件传输:通过NIO socket。
  • android下httpServer的实现通过apache的httpcore。

效果图

需要两部手机,连接在同一个wifi环境下,会相互发现,并且通过点击发现后的对方,建立连接,进而进行文件的传输。

image

引用库

  • 雷达扫描图 作者:本人
  • 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') 作者本人

感谢

杨蔚 及其 儿子

anyshareofandroid's People

Contributors

gpfduoduo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.