• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps about wireless comm. between my apps

fena

Lurker
Hi there! I would like to make an app which can search for other devices and connect to them if they use same application. Could you guide me about where to begin for that? I guess I will have to android.net.wifi class for that.
Cheers
 
Hi, i am currently creating an app (AirConnect) that handles sync over Wifi and I am planning to implement a feature like what I think it is you are describing. I have a solution for this problem in my head but no time to write it.

I believe a sharing app (even local) won't get a broad user adaptation (look at all the photo sharing stuff) which is why i am creating a sync app rather than a sharing app. I'd love to see your effords pay off and i am willing to help but as I mentioned, I have not much time.

What I'd like to propose is to join our effords. If I help you and let you create your app, Would you allow me to use this for AirConnect? (If you'd like you could also become a part of AirConnect)

Cheers!

Pieter
 
Hi reagnon! Yes we can join our effords. I can work for AirConnect as well if it includes same problem as in my project as you said. However, I must say I am new at Android Apps (I know Java though).
 
You need the ip of the other device, so either the user types it in or you'll need to do a UDP broadcast to the local broadcast address, which is usually something like x.x.x.255 (replace x's with user's IP) or as an example 192.168.1.255.

Google "boxee remote udp" for some code and a method to do this.

The only other option is ad-hoc networking which isnt supported in Android.


Also moving to regular dev forum as this isnt 101 level stuff :)
 
You need the ip of the other device, so either the user types it in or you'll need to do a UDP broadcast to the local broadcast address, which is usually something like x.x.x.255 (replace x's with user's IP) or as an example 192.168.1.255.

Google "boxee remote udp" for some code and a method to do this.

The only other option is ad-hoc networking which isnt supported in Android.


Also moving to regular dev forum as this isnt 101 level stuff :)

Ok. sorry for opening the thread to wrong place :)
Do I have to have an IP address for the destination all the time? I mean, in Android, is it possible to build an application which broadcasts the message without target and then the devices which use the same application respond?
 
No worries on posting in the wrong section :)

As for another way, might be something along the lines of Multicast but I am not sure how you would do it. I dont know enough about multicast unfortunately.

Since udp broadcast basically "announces" (similar to muticast IIRC) you can use this to tell all devices on the newrok that you would like to connect. Then one device would respond its ip address in the response. Once you have the IP, the connection is simple.
 
Back
Top Bottom