Skip to content

No database access should be done on the main thread #26

@samcrow

Description

@samcrow

The current code access local and remote databases on the main (user interface) thread. This is not good for the perceived responsiveness of the application.

The current code overrides the StrictMode policy and allows network access on the main thread. Before the final release, we should remove the override and move all database accesses off of the main thread.

Useful links:

https://developer.android.com/training/articles/perf-anr.html

https://developer.android.com/reference/android/os/AsyncTask.html

https://developer.android.com/reference/android/os/Handler.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions