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

Apps Wifi Connectivity and Communication in Android

gumuruh

Lurker
Jul 9, 2014
1
0
Hi developers!

I have several questions about Wireless (Wifi ) in android is .... :)

Is it possible if let say: :D

1) Two devices are turning on their Wifi
2) They're not connected to any network. No LAN, no bluetooth, no phonecall, no internet
3) They want to discover each other devices
4) They want to communicate each other (sending simple string).
5) They don't want the intermediary devices for direct communication.
6) They are not having Wifi Direct capabilities.


I read socket and server concept in java, but they need to be connected each other / to any networks. Which means it is not what in my case (above). I need to know how each device could discover each other first before connecting them. And how to do that in Wifi?

I found Chord SDK. that simplify the wifi coding in android. But that only available for Samsung device. Sigh.

I found JXTA for peer2peer communication on java. But it need RDV to list down the IP address for the peer to acknowledge each other. Which means not fit to my case (above).

I found alljoyn library. But the examples are too complex to follow.

I found NearBytes SDK. it simple code that makes the devices communicate each other. I like it. But it only available for shorter distance (few centimeters). Which is not fit to my case (above).

so again,
How and what are the steps for achieving it? :eek:
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones