1

I'd like to make a little experiment with an Android app.

I have several android devices and I'd like to make an app to chat between devices without knowing the specific IP of each devices, just discovering every device wich have my app installed. So, basically there are two main questions here:

  1. Is there any Android tool, library or example about how implement device discovery over a local wifi network?

  2. What is the best way for sending data from one Android device to another? Again, is there any tool, library or example that could serve as a guide?

Also, I'd like my app to run on Android 2.2+

Any ideas? Thank You!

Kelvin De Moya
  • 5,118
  • 1
  • 17
  • 16
  • possible duplicate of [Bonjour implementation on Android](http://stackoverflow.com/questions/4656379/bonjour-implementation-on-android) – Greg Hewgill May 21 '13 at 02:08
  • Not quite a duplicate as Bonjour is but one possibility, but that question is definitely worth reading for reference. – Chris Stratton May 21 '13 at 02:09

2 Answers2

1

On Android, use Network Service Discovery. If you're using an earlier target, jmDNS is your friend. I have only used this to allow android devices to find each other, but this should be compatible with bonjour service.

323go
  • 14,143
  • 6
  • 33
  • 41
0

You can use DIAL (DIscover And Launch):

http://www.dial-multiscreen.org/

http://www.theregister.co.uk/2013/01/28/dial_youtube_netflix/

The same is used on YouTube and Netflix.

EDIT:

This solves your problem #1, then you will have the other's phone IP address and you could open a socket to communicate with it, solving problem #2.

thiagolr
  • 6,909
  • 6
  • 44
  • 64
  • I believe that one doesn't allow me to achieve what I'm looking for, but it looks very interesting, thank you. – Kelvin De Moya May 22 '13 at 02:22
  • @thiagolr, but he said he doesnt know the specific IP address. (look at the main question). He want to discover first the devices using wifi. – gumuruh Jul 06 '14 at 05:49
  • DIAL is used to discover other devices on the same network... you don't need to know the specific IP address! – thiagolr Jul 06 '14 at 13:19