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
Currently available on the Play store.
General Overview
Service Discovery
Power Consumption
More Recommended Reading
This app is currently in beta so functionality subject to change.
This application is library independent
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()
- AndroidStudio
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:
- The discovery time is too high when the number of devices increases
- 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.
- 09/04/2018 - WiFi Direct File Transfer Beta 1 public release
- 23/08/2018 - WiFi Direct File Transfer Beta 2 public release
You can:
- show a list of nearby devices
- manage connection and disconnection between devices
- send message to dives ho are connected to you for check this device in peers list (not available in Android's official API)
- sending multiple files on both of two devices
- see what are you send/receive without disconnection, and open received files (just tap)
- auto restarting servers of receiving files and device info
- 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... ;)
- Activate Wi-Fi on all devices
- Open this app on all devices
- App will auto discovering peers
- Сhoose the device from peers list for connect
- Wait until device are connecting
- App will auto open file chooser
- Choose the files what are you want to send
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 436910463q@gmail.com
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**