Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How to share files on a local network? [closed]

I want to create application which can share files through wifi similar to Xender/Superbeam. I don't want to rely on router or some other hotspot. I want to create new connection from one device and other devices should able to find and connect. How can I achieve any sample code or link will help.

like image 441
Akshay Pure Avatar asked Jul 11 '15 09:07

Akshay Pure


People also ask

How do I share files not on the same network?

To share a file or folder over a network in File Explorer, do the following: Right-click (or long-press) a file, and then select Show more options > Give access to > Specific people. Select a user on the network to share the file with, or select Everyone to give all network users access to the file.

How do I share files offline?

The peer to peer (P2P) sharing feature in Files by Google lets you send and receive files and apps without using mobile data or connecting to Wi-Fi. To share files with people nearby, all users must have the Files by Google app. If you haven't already, get the app from the Play Store.


1 Answers

You can try using wifi Direct . Here is the documentation Wifi P2p You can also try out the demo by importing sample project. Also try out this extension of wifi p2p demo Even Superbeam uses wifi direct as a fallback.

like image 92
Sahil Bahl Avatar answered Sep 19 '22 15:09

Sahil Bahl