Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to utilize network for p2p file sharing on Android Platform?

I'm working on some apps for the android platform and I have two problems that I'm not quite sure how to approach, and both are closely related.

  1. How can I send a relatively small data file from one android device to another (preferably over the internet or directly through wireless network)?

  2. Is it possible to create a temporary p2p live data stream from one android device to another? An example application would be to stream low-res video from phone A's camera to phone B, or audio.

I would much appreciate being pointed in the right direction on either issue (File transfer or real time data transfer).

like image 746
CodeFusionMobile Avatar asked Mar 02 '10 02:03

CodeFusionMobile


People also ask

What is P2P Internet connection?

In peer-to-peer (P2P) networking, a group of computers are linked together with equal permissions and responsibilities for processing data. Unlike traditional client-server networking, no devices in a P2P network are designated solely to serve or to receive data.

How can you transfer the file using P2P?

The process works like this: You run peer-to-peer file-sharing software (for example, a Gnutella program) on your computer and send out a request for the file you want to download. To locate the file, the software queries other computers that are connected to the Internet and running the file-sharing software.

Is Bluetooth a P2P network?

The most common way to implement P2P exchanges of data between Android devices is to use Bluetooth, which is available on all Android devices shipping today.


1 Answers

You could try to get Google's library libjingle to work on Android. It provides quite advanced NAT Traversal capabilities, which should be able to get through the carriers' firewalls.

like image 163
Yrlec Avatar answered Sep 27 '22 20:09

Yrlec