Threading Performance 101. (Android Performance Patterns Season 5, Ep. 1)

Android Developers · 143K views · 2016 · 3:53

Open on YouTube

Software performance & optimizationSoftware (other)explainerdated

Why Stack Overflow recommends it

Stack Overflow users link it when pointing Android developers to the Performance Patterns series for general app speed advice and for background on threading and loaders.

Recommended by 2 people across 2 different months, 2016 to 2018.

What it is

A short Android Developers video from the Android Performance Patterns series in which Colt McAnlis explains why moving work off the main thread matters. It gives a high-level tour of the Android classes that help with threaded code.

What people said

Recommends Bryan · 2016-10 · Stack Overflow · on “Does AsyncTask always improve performance?”

Not if creating that `ArrayList` is not the source of your performance issues. There can be a number of variables at play that are causing these issues. I suggest you check out this article [LINK] to help diagnose your problems. And check out Best Practices for Performance [LINK] or the Android Performance Patterns [this video] video series for more information.

Recommends André Sousa · 2018-10 · Stack Overflow · on “Tips on making apps faster”

What you need to do is to profile your app to know what exactly are your performance issues. No two apps are equal. For example: calling multiple methods on the onCreate could have no impact or can make your app slow, it depends on what you're doing on your methods . My recommendation to you is to check this google free course: [LINK] EDIT Check also the Performance Pattern series on YouTube: [this video] Some performance topics that will have a significant impact on your app's performance: Memory Leaks Overdraw View Hierarchy Memory allocations Hope it helps you.

Cites Aman · 2017-07 · Stack Overflow · on “Error with the simple code using Loaders in android”

I was trying to refactor my code and move my code from Async Task to a loader. I came to know about the benefits of loaders through the Android Performance video series Loaders Android Performance [this video] I know why Loaders are used and what classes it has and stuff (The theory). However I am unable to grasp the working concept and thus wrote this poor code. Thus I am also not able to debug it. **EDIT: I was able to make it work but I still think I am calling it in a wrong manner. new EarthquakeAsyncTaskLoader(this).forceLoad(); If anyone can help me out, on this.........** import android.content.AsyncTaskLoader; import android.content.Context; import android.content.Intent; import android.n