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

author Android Developers   3 год. назад
51,344 views

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: http://goo.gl/4ZJkY1 Join the G+ Community here : http://goo.gl/g7mxmI Subscribe to Android Developers: https://goo.gl/88dzea #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: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko : https://www.facebook.com/teluskolearnings Navin Reddy : https://www.facebook.com/navintelusko Follow Navin Reddy on Instagram: https://www.instagram.com/navinreddy20 Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ?sub_confirmation=1 Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw?sub_confirmation=1 Subscribe to the channel and learn Programming in easy way. Java Tutorial for Beginners: https://goo.gl/p10QfB C Tutorial Playlist : https://goo.gl/8v92pu Android Tutorial for Beginners Playlist : https://goo.gl/MzlIUJ XML Tutorial : https://goo.gl/Eo79do Design Patterns in Java : https://goo.gl/Kd2MWE Socket Programming in Java : https://goo.gl/jlMEbg Spring MVC Tutorial : https://goo.gl/9ubbG2 OpenShift Tutorial for Beginners : https://goo.gl/s58BQH Spring Framework with Maven : https://goo.gl/MaEluO Sql Tutorial for Beginners : https://goo.gl/x3PrTg String Handling in Java : https://goo.gl/zUdPwa Array in Java : https://goo.gl/uXTaUy Java Servlet : https://goo.gl/R5nHp8 Exception Handling in Java : https://goo.gl/N4NbAW

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: http://goo.gl/4ZJkY1 Join the G+ Community here : http://goo.gl/g7mxmI #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: http://goo.gl/4ZJkY1 Join the G+ Community here : http://goo.gl/g7mxmI #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: https://goo.gl/MWXVav

Watch more Android Performance Patterns here: http://goo.gl/4ZJkY1

Join the G+ Community here : http://goo.gl/g7mxmI

#PERFMATTERS

Subscribe to the Android Developers channel at http://goo.gl/GEh1ds

Comments for video: