I’ve heard that there might be a possibility to post GET query and pass it some handler in a way that doesn’t make you wait for the answer: when answer comes, it just calls the given handler that handles the result.
This isn’t about blocking UI, i know how to use AsyncTask. The problem is that i want to post 3-4 queries to the internet simultaniously.
Is there a way to do it in Android without creating too many threads?
Take a look at Apache commons HTTP core, which supports non-blocking IO (NIO). (and an example)