Is it possible to do something asynchronous, such as perform an HTTP request, without forking the thread? In windows or Linux I don’t usually see any application making a child process for each HTTP request, so I would like to do the same with Android. Otherwise to me it seems like it’s overkill and adds an unnecessarily high priority to my application.
If anyone is familiar with JavaScript, I’d like to do asynchronous stuff just like it. Having a sort of queue of what to do, and everything is actually in one thread, even though they are asynchronous. It uses some sort of queuing mechanism.
Of course I may know this incorrectly, and using Threads or AsyncTask maybe doesn’t actually open a new process.
All AsyncTask instances run using a shared pool of threads that already exist (unless you specify your own executor, of course), avoiding the overhead of spawning new threads all the time. Use those.