WiFi-Direct-File-Transfer-App
WiFi-Direct-File-Transfer-App copied to clipboard
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 po...
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
Currently available on the Play store.
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
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.
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:
- 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
Future extensions
- [x] Multiple files transfer
- [x] Progress bar in receive file
- [x] Who connected to your device check it in peer list
- [x] Fix corrupted files on specific devices (in fileServerAsyncTask)
- [x] Change path to receive
- [x] Change device name
- [x] 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
Usage
General usage
- 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
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**