Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi my friends. I am new in android programming
i have two different app that i want make relation between them by wifi and hotspot,( without internet and without router, just by wifi and hotspot).

how can i do this?

for example send data of textbox in first app to textbox on another app??

What I have tried:

i said i am new and i can not do nothing.
Posted
Updated 6-Oct-17 6:44am
v2

You can do this easily in Android through the Networking APIs available, but remember you cannot do this without a router and the network connection. :laugh:

Your application will connect to the network, and look for any active clients on the network — maybe others would need to show themselves as active, and for this you can provide them with the app as well and enable the network visibility. After that, you can transfer the data on the sockets. For instance, this documentation on Android Developer website talks about peer-to-peer connectivity with WiFi; Creating P2P Connections with Wi-Fi | Android Developers[^] and this is exactly what you need.

Performing Network Operations | Android Developers[^]
 
Share this answer
 
Comments
Mohammad Hasanpoor 6-Oct-17 3:51am    
yes but in future i want make relation between app of android and app of ios? can i do your solution between ios and android apps??
You can use either NFC (if they are close enough) or Bluetooth for this. No additional hardware required.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900