S
S
SHAKIRA2014-06-14 16:15:32
Java
SHAKIRA, 2014-06-14 16:15:32

How to transfer data via local network from an android device to a computer, or another android device and vice versa?

Hello! So I want to write an application for myself that would allow me to transfer short messages from a tablet, or smartphone, to another tablet, or computer and back over the local network.
for example, I found an article on Habré, clicked share, chose the program and the link went to the computer.
As I understand it, you need to raise the server that exchanges data. it needs to be raised on Android and both the client on the computer and the client on the tablet and all other devices that participate in the network listen to it.
Please tell me how can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FoxInSox, 2014-06-14
@FoxInSox

TCP / UPD sockets are suitable for this.
Server and client example using TCP connection:
www.tutorialspoint.com/java/java_networking.htm
Server and client example using UDP connection:
systembash.com/content/a-simple-java-udp-server-an...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question