I'm developing a app
that needs to be always connected to the server. For this I thought to use a async task
to run the connection to the server in the background but when I change from Activity
the connection ends.
I've been reading some documentation on the internet and realized that I can always make the connection to the server constant through Aplication
.
My problem is that I can not figure out what the difference is between Aplication
and Async Task
, why can the two result in the same result?