3

I want to send files between two devices using internet connection with out use any intermediate /server. For example there are two device A and B both have internet connection and both device have installed my application, now need to send a file from Device A to Device B. Device A can know all the detail about the Device B.

Is this possible means guide me in the correct way. Thanks in advance.

Rakki s
  • 1,426
  • 1
  • 18
  • 42

2 Answers2

4

You can use a Peer to Peer architecture to achieve this. Basically every phone is a client and a server the same time. See here for a basic implementation.

If the internet is not a prerequisite, you can follow Minav Patel's suggestion and use the Android Bluetooth implementation.

Another solution would be the WiFi-Direct feature (if the phone support it). See here for an example.

AggelosK
  • 4,313
  • 2
  • 32
  • 37
0

You can implement file transfer between two android devices using android bluetooth implementation.Go through following links it will help

android bluetooth implementation basics http://developer.android.com/reference/android/bluetooth/BluetoothSocket.html http://developer.android.com/guide/topics/connectivity/bluetooth.html

Community
  • 1
  • 1