Sharing files between two devices using wifi can be done by:
Wifi is used between wireless devices and as an access point for interconnection. While the hotspot is created using an access point device that is connected to the router. Wifi provides high speed as compared to a hotspot in the case of multiple users.
WiFi-Hotspot allows all your other devices to connect to the Internet by sharing your phone's mobile data; while WiFi-Sharing achieves that by sharing your phone's WiFi connection.
So, to put it shortly, the main differences between Wi-Fi Direct and WiFi are that: WiFi Direct works directly between devices, without needing a router and a traditional wireless network. WiFi Direct doesn't give you access to the internet.
Wi-Fi Direct (also known as peer-to-peer or P2P) allows your application to quickly find and interact with nearby devices, at a range beyond the capabilities of Bluetooth. The Wi-Fi Direct (P2P) APIs allow applications to connect to nearby devices without needing to connect to a network or hotspot.
One basic difference in usage is that if you use access point approach, any other access point can not be used same time, meaning that if user had existing connection through some access point, it will be terminated.
Also if there are apps looking for internet connectivity, they might start pushing data as soon as you make a access point connection to the other device, which might pose some security issues (in case the other device has some sniffers ready for sensitive data etc.)
With WiFi direct, there are no such things as access points, Basically you find a WiFi direct device, and start connection to it. With first creation of the WiFi Direct Group, there is dialog shows for accepting incoming connections (so its always shown in the party we are making the connection to).
Then when the connection succeeds, one of then devices are chosen to be Group Owner, and any other devices wanting to join the group, should then make connections to the group owner only.
With WiFi Direct API, you can also use CreateGroup, to pre-select one device to be group owner, This option would also create a Access point with random password.Thus if you want to go with Accesspoint option, you could use this feature for it easily.
For the easier/faster questions, I would not have any good answers, I would suppose they probably are around the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With