Threading and Loaders. (Android Performance Patterns Season 5, Ep. 8)

author Android Developers   3 год. назад

719 Like   13 Dislike

DO NOT LEAK VIEWS (Android Performance Patterns Season 3 ep6)

As much as we complain about leaking memory, it’s important to know that there some “small” leaks, and some huge, problematic, city-destroying leaks. And in that category sits the ever-so-humble “VIEW” object in your application. As Colt McAnlis describes, leaking VIEW objects can have massive ramifications to the memory and stability of your application… so.. please.. PLEASE don’t do it… Watch more Android Performance Patterns here: Join the G+ Community here : Subscribe to Android Developers: #PERFMATTERS

Asynctask in Android -Theory | Android Tutorial for Beginner

In this video we will see the Theory of AsyncTask in Android AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. An asynchronous task is defined by 3 generic types, called Params, Progress and Result, and 4 steps, called onPreExecute, doInBackground, onProgressUpdate and onPostExecute. Check out our website: Follow Telusko on Twitter: Follow on Facebook: Telusko : Navin Reddy : Follow Navin Reddy on Instagram: Subscribe to our other channel: Navin Reddy : Telusko Hindi : Subscribe to the channel and learn Programming in easy way. Java Tutorial for Beginners: C Tutorial Playlist : Android Tutorial for Beginners Playlist : XML Tutorial : Design Patterns in Java : Socket Programming in Java : Spring MVC Tutorial : OpenShift Tutorial for Beginners : Spring Framework with Maven : Sql Tutorial for Beginners : String Handling in Java : Array in Java : Java Servlet : Exception Handling in Java :

The Zen of IntentService. (Android Performance Patterns Season 5 ep7)

Dealing with Intent responses is a backbone concept to Android development. But in situations where an Intent results in long-running work, you need to find an efficient way to offload that to a different thread. In this video +Colt McAnlis discusses where IntentServices fit into the big picture of threading on Android, alongside noting some nuances that come along with using this class. Watch more Android Performance Patterns here: Join the G+ Community here : #PERFMATTERS #background

The Importance of Thread Priority (Android Performance Patterns Season 5, Ep. 9)

Fun fact : Modern CPUs can only handle a certain number of threads at one time. Once you get above that limit, they have to start scheduling which thread gets the next open block of CPU processing time. And even better : This can influence the performance of your Android app. In this video +Colt McAnlis introduces the concept of thread priority, why it’s important to work with, and how to set it for threads you create, in a very sane way. Watch more Android Performance Patterns here: Join the G+ Community here : #PERFMATTERS

Let’s say you’ve got some 20 bitmaps being decoded on a worker thread. Well, what happens if your activity is destroyed before that work completes?

In this video Doug Stevenson explains Loaders. A super-helpful class that can give you insight into how the activity lifecycle is changing, so that you can better understand how to address threaded work that might be in flight.

See Android Architecture sample code here:

Watch more Android Performance Patterns here:

Join the G+ Community here :


Subscribe to the Android Developers channel at

Comments for video: