N
N
Nube2017-01-22 09:34:41
Java
Nube, 2017-01-22 09:34:41

Socket programming on android or alternatives?

Hello, I recently started studying Android development and decided to write a simple . So the task is to send "hello" to the server and get the same in return. Can I use sockets for this or are there alternatives? The question is stupid, but I read somewhere that it is better to create threads in android using native libraries, and not using Thread , and this prompted the thought "maybe sockets are not efficient?". Again, I apologize if this is a stupid question.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex maslakoff, 2017-01-22
@Nube

Yes, you can.
Alternatives -- http protocol, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question