SlideShare a Scribd company logo
1 of 15
Android App
Performance Tips
Lê Văn Giáp
Why ?
Smooth responsive
Why ?
Keep battery time
Coding tips
 Avoid Creating Unnecessary Objects
 Use Static Final For Constants
 Avoid Internal Getters/Setters
 Use Enhanced For Loop Syntax
 Avoid Using Floating-Point
 Create package Instead of private Inner Classes
Read more at: http://developer.android.com/
Use Enhanced For Loop Syntax
UI tips Re-using layout with <include />
UI tips <merge/>
UI tips Loading views on demand <ViewStub/>
UI tips Smooth scrolling ListView – (AsyncTask)
UI tips Smooth scrolling ListView – (ViewHolder)
…in getView(….)
UI tips Smooth scrolling ListView
RecyclerView
RecyclerView.ViewHolder
RecyclerView.Adapter
Instead of basic ListView
UI tips Smooth loading image
Lazy load
AsyncTask
File caching
UI tips Monitor, Tracking tool
Memory monitor
Allocatio tracker
Heap viewer
Systrace
Advance tips
Optimizing Battery Life
Read more at developer.android.com
Reducing Network Battery Drain
Optimizing for Doze and App Standby
Monitoring the Battery Level and Charging State
Manipulating Broadcast Receivers On Demand
giaplee
giap.lee.68@gmail.com
Linkedin.com/in/giaplee
Contact me:

More Related Content

Viewers also liked

Juegos tradiconales
Juegos tradiconalesJuegos tradiconales
Juegos tradiconalesValen052
 
Hanging by a thread: an opportunity for growth
Hanging by a thread: an opportunity for growthHanging by a thread: an opportunity for growth
Hanging by a thread: an opportunity for growthAndy Solty
 
Macroeconomic analysis of USA
Macroeconomic analysis of USAMacroeconomic analysis of USA
Macroeconomic analysis of USAAbhishek Sao
 

Viewers also liked (6)

Seúl
SeúlSeúl
Seúl
 
la memoria
la memoria la memoria
la memoria
 
Juegos tradiconales
Juegos tradiconalesJuegos tradiconales
Juegos tradiconales
 
Hanging by a thread: an opportunity for growth
Hanging by a thread: an opportunity for growthHanging by a thread: an opportunity for growth
Hanging by a thread: an opportunity for growth
 
Macroeconomic analysis of USA
Macroeconomic analysis of USAMacroeconomic analysis of USA
Macroeconomic analysis of USA
 
Silk sarees
Silk sareesSilk sarees
Silk sarees
 

Similar to Android App Performance Tips

Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMAdobeMarketingCloud
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMAdobeMarketingCloud
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMconnectwebex
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETPeter Gfader
 
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)Yuriy Silvestrov
 
Eclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in EclipseEclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in Eclipsedeepakazad
 
WebSphere Portlet Factory: Davalen’s Practical Advice from the Field
WebSphere Portlet Factory: Davalen’s Practical Advice from the Field WebSphere Portlet Factory: Davalen’s Practical Advice from the Field
WebSphere Portlet Factory: Davalen’s Practical Advice from the Field Davalen LLC
 
Android Best Practices - Thoughts from the Trenches
Android Best Practices - Thoughts from the TrenchesAndroid Best Practices - Thoughts from the Trenches
Android Best Practices - Thoughts from the TrenchesAnuradha Weeraman
 
Lessons-Learned-SwiftUI.pptx
Lessons-Learned-SwiftUI.pptxLessons-Learned-SwiftUI.pptx
Lessons-Learned-SwiftUI.pptxMohammad Azam
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopMark Rackley
 
The ultimate guide to optimize your react native app performance in 2022
The ultimate guide to optimize your react native app performance in 2022The ultimate guide to optimize your react native app performance in 2022
The ultimate guide to optimize your react native app performance in 2022Katy Slemon
 
Quick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, VinnitsaQuick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, VinnitsaYuriy Silvestrov
 
Introduction to angular js for .net developers
Introduction to angular js  for .net developersIntroduction to angular js  for .net developers
Introduction to angular js for .net developersMohd Manzoor Ahmed
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCBarry Gervin
 
Building Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in RailsBuilding Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in RailsJim Jeffers
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android AppsClaire Lee
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the TrenchesASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the TrenchesHabeeb Rushdan
 
Building Mobile Optimized Websites
Building Mobile Optimized WebsitesBuilding Mobile Optimized Websites
Building Mobile Optimized Websiteshaxorize
 

Similar to Android App Performance Tips (20)

Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Best practices android_2010
Best practices android_2010Best practices android_2010
Best practices android_2010
 
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
 
Eclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in EclipseEclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in Eclipse
 
WebSphere Portlet Factory: Davalen’s Practical Advice from the Field
WebSphere Portlet Factory: Davalen’s Practical Advice from the Field WebSphere Portlet Factory: Davalen’s Practical Advice from the Field
WebSphere Portlet Factory: Davalen’s Practical Advice from the Field
 
Android Best Practices - Thoughts from the Trenches
Android Best Practices - Thoughts from the TrenchesAndroid Best Practices - Thoughts from the Trenches
Android Best Practices - Thoughts from the Trenches
 
Lessons-Learned-SwiftUI.pptx
Lessons-Learned-SwiftUI.pptxLessons-Learned-SwiftUI.pptx
Lessons-Learned-SwiftUI.pptx
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint Workshop
 
The ultimate guide to optimize your react native app performance in 2022
The ultimate guide to optimize your react native app performance in 2022The ultimate guide to optimize your react native app performance in 2022
The ultimate guide to optimize your react native app performance in 2022
 
Quick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, VinnitsaQuick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, Vinnitsa
 
Introduction to angular js for .net developers
Introduction to angular js  for .net developersIntroduction to angular js  for .net developers
Introduction to angular js for .net developers
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
Building Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in RailsBuilding Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in Rails
 
How to Make Android Native Application
How to Make Android Native ApplicationHow to Make Android Native Application
How to Make Android Native Application
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android Apps
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the TrenchesASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the Trenches
 
Building Mobile Optimized Websites
Building Mobile Optimized WebsitesBuilding Mobile Optimized Websites
Building Mobile Optimized Websites
 

More from Giap Le Van

M-Commerce will be the next trends
M-Commerce will be the next trendsM-Commerce will be the next trends
M-Commerce will be the next trendsGiap Le Van
 
Google Android Security (Basic2Advanced)
Google Android Security (Basic2Advanced)Google Android Security (Basic2Advanced)
Google Android Security (Basic2Advanced)Giap Le Van
 
Mobile Game Market Overview
Mobile Game Market OverviewMobile Game Market Overview
Mobile Game Market OverviewGiap Le Van
 
Mobile Day 2012 - Chợ ứng dụng thuần Việt
Mobile Day 2012 - Chợ ứng dụng thuần ViệtMobile Day 2012 - Chợ ứng dụng thuần Việt
Mobile Day 2012 - Chợ ứng dụng thuần ViệtGiap Le Van
 
Local app market - Barcamp2012 Ha Noi
Local app market - Barcamp2012 Ha NoiLocal app market - Barcamp2012 Ha Noi
Local app market - Barcamp2012 Ha NoiGiap Le Van
 
Slide hội thảo Google Android BKHN 26-10
Slide hội thảo Google Android BKHN 26-10Slide hội thảo Google Android BKHN 26-10
Slide hội thảo Google Android BKHN 26-10Giap Le Van
 

More from Giap Le Van (6)

M-Commerce will be the next trends
M-Commerce will be the next trendsM-Commerce will be the next trends
M-Commerce will be the next trends
 
Google Android Security (Basic2Advanced)
Google Android Security (Basic2Advanced)Google Android Security (Basic2Advanced)
Google Android Security (Basic2Advanced)
 
Mobile Game Market Overview
Mobile Game Market OverviewMobile Game Market Overview
Mobile Game Market Overview
 
Mobile Day 2012 - Chợ ứng dụng thuần Việt
Mobile Day 2012 - Chợ ứng dụng thuần ViệtMobile Day 2012 - Chợ ứng dụng thuần Việt
Mobile Day 2012 - Chợ ứng dụng thuần Việt
 
Local app market - Barcamp2012 Ha Noi
Local app market - Barcamp2012 Ha NoiLocal app market - Barcamp2012 Ha Noi
Local app market - Barcamp2012 Ha Noi
 
Slide hội thảo Google Android BKHN 26-10
Slide hội thảo Google Android BKHN 26-10Slide hội thảo Google Android BKHN 26-10
Slide hội thảo Google Android BKHN 26-10
 

Android App Performance Tips