Skip to content

AsyncTask vs. Loopers, Handlers, and HandlerThread #47

@lasking88

Description

@lasking88

The application uses only AsyncTask class for dealing with threads.
The AsyncTask is designed for short-lived and not repeated too often.
The bigger the project is, the more AsyncTask calls are necessary.
Instead of using AsyncTask, dealing with threads directly would have better performance.
AsyncTask does not create a thread for each instance of it, but executed all instances
in a single thread. In other words, each instance runs one after the other.
Recommends to use handlers to communicate to the main threads.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions