Coder Social home page Coder Social logo

yaphets1 / wifi-direct-file-transfer-app Goto Github PK

View Code? Open in Web Editor NEW
101.0 9.0 34.0 630 KB

WiFi Direct File Transfer is a experimental app that will allow sharing of data between Android devices running Android 4.0 or higher using a WiFi direct connection without the use of a WiFi access point. This will enable data transfer between devices without relying on any existing network infrastructure

License: Apache License 2.0

Java 100.00%
wifi-direct transfer p2p p2p-transfer android file transfer-files peer-to-peer

wifi-direct-file-transfer-app's Introduction

WiFi-Direct-File-Transfer-App

WiFi Direct File Transfer is a experimental app that will allow sharing of data between Android devices running Android 4.0 or higher using a WiFi direct connection without the use of a WiFi access point. This will enable data transfer between devices without relying on any existing network infrastructure

green horizontal

Currently available on the Play store.

Get it on Google Play


Recommended Reading

General Overview
Service Discovery
Power Consumption
More Recommended Reading

WARNING

This app is currently in beta so functionality subject to change.

Dependencies

This application is library independent

Installation an Usage

Just build it and install it to your device :-)

WARNING: The application does not work in the emulator, because the emulator does not have the method WifiP2pManager.initialize()

Requirements

  • AndroidStudio

Results

ScreenShot ScreenShot

WiFi Direct File Transfer works with good performances.
The main problems are the "Discovery Phase" of this protocol and the Wi-Fi Direct's implementation in Android, in fact:

  1. The discovery time is too high when the number of devices increases
  2. After a certain time, a device is no longer discoverable from others, so you need to restart the Discovery Phase on all devices

This shows that it's possible to extend the Wi-Fi Direct protocol in Android in some particular and limited scenarios, for example a transfer files.

News

  • 09/04/2018 - WiFi Direct File Transfer Beta 1 public release
  • 23/08/2018 - WiFi Direct File Transfer Beta 2 public release

Features

You can:

  1. show a list of nearby devices
  2. manage connection and disconnection between devices
  3. send message to dives ho are connected to you for check this device in peers list (not available in Android's official API)
  4. sending multiple files on both of two devices
  5. see what are you send/receive without disconnection, and open received files (just tap)
  6. auto restarting servers of receiving files and device info

Future extensions

  • Multiple files transfer
  • Progress bar in receive file
  • Who connected to your device check it in peer list
  • Fix corrupted files on specific devices (in fileServerAsyncTask)
  • Change path to receive
  • Change device name
  • Change transfer data between device, I mean read/write file by chunks
  • Connect more clients (now only possible between 2 devices)
  • and so on... ;)

Images


alt tag

alt tag


Usage

General usage

  1. Activate Wi-Fi on all devices
  2. Open this app on all devices
  3. App will auto discovering peers
  4. Сhoose the device from peers list for connect
  5. Wait until device are connecting
  6. App will auto open file chooser
  7. Choose the files what are you want to send

Troubles

If you have a troubles with connection to peer:

  • try to reconnect, if reconnection are successful, it will auto open file chooser
  • if you have another issue just restart an app and wait about 1 min (recall it's beta app)
  • if you have some troubles which are not described here, please open an issue or send email to [email protected]

License

Copyright 2018 Dmitry Marinin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


**Created by Dmitry Marinin**

wifi-direct-file-transfer-app's People

Contributors

mayowadavid avatar yaphets1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wifi-direct-file-transfer-app's Issues

Logo Proposal

Hi, @YaphetS1 I am a graphics designer. I will like to know if you want me to create a logo for your project.

Unable to Send and Receive files

The application builds and runs without any error. But the available devices are not discovered by the application and the send/ receive functionality is not working.

gettign these error while running on emulator

04-06 12:45:42.601 4458-4497/com.app.wi_fi_direct D/EGL_emulation: eglMakeCurrent: 0x7f2f951658c0: ver 3 1 (tinfo 0x7f2f96b04ee0)
04-06 12:45:42.783 4458-4497/com.app.wi_fi_direct D/EGL_emulation: eglMakeCurrent: 0x7f2f951658c0: ver 3 1 (tinfo 0x7f2f96b04ee0)
04-06 12:45:42.783 4458-4497/com.app.wi_fi_direct E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f2f951660e0

error while building

\WiFi-Direct\app\src\main\java\com\app\wi_fi_direct\helpers\FileServerAsyncTask.java
Error:(94, 22) error: cannot find symbol variable objectInputStream
Error:(123, 7) error: cannot find symbol variable objectInputStream

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.