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.
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