Prabhu M
Prabhu M

Reputation: 3600

Android communication between two applications on two different devices

Is it possible to establish communication between two different apps which are on the two different devices over the internet. I want hit the app which is on one deviceB from the app which is on deviceA and get data from the app on deviceB to app on deviceA. If it is possible , How to do this?

Upvotes: 2

Views: 2133

Answers (2)

Yaqub Ahmad
Yaqub Ahmad

Reputation: 27659

If both the devices are in Bluetooth range then the Bluetooth can be used as a communication medium, the Bluetooth chat application is a good example of this.

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80350

Practically only through a server. Mobile devices can not directly connect to each other because NAT prevents establishing inbound connections.

So you will need:

  1. User or device identification scheme. How do users find each other? How do the indicate to whom they want to connect to? You need to provide this on your own.

  2. Push technology to notify user that someone wants to connect. Use C2DM.

  3. Your own server through which you'll relay data users want to share/send.

Upvotes: 2

Related Questions