[Solved] Thread vs Handler vs Async task for sockets in android? [duplicate]
You can use both a Thread or an AsyncTask, just chose one of the two based on your needs (if you provide more details about the task you need to perform I might be able to help you more specifically). The Handler class is not meant to be used to run asynchronous tasks (like Thread … Read more