SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
May the “Performance” be with you
DAIICT - June 2016
source: app annie
Top Apps on Google Play, United States, Applications
source: android
Android Distribution (June 2016)
Power Consumption
Battery Life is very important to the consumers
Battery Life
WiFi Speed/Quality
Touch Screen
Screen/Display Size
Display Type/ Quality
Connectivity
Memory
Display Resolution
0 10 20 30 40 50 60 70 80 90 100
38%
42%
44%
46%
46%
48%
52%
72%
Source: Qualcomm Band Tracker, Market Search Group, US
..but it is a Developer’s concern
Power is a part of User Experience
Power is important to the Mobile users
“Bad” ratings / Uninstall is the only escape
Compromising For Benefits
20-30% Core Functions
70% - Ads, GPS, Analytics
…You need to balance
20-30% Core
Functions
70% - Ads, GPS,
Analytics
Reducing Battery
Drain
Just the right moment (no sleep?)
Uploading of Files/Songs
Cropping of Images
Unwanted loading
Wakeloack

Alarm manager

Job scheduler
Thank you “network” request
if Polling for network
requests
Response Packets
Device being awake
But you can check the stats
Wakelock Time
Network Time
Wakelock:
Wakelock..really?
Issue/Issues batch? Job Scheduler
Moment you first write your GPS Code
GPS: God of Battery Drain
Do you really need GPS?
Approximation?
Ask UserCarry On
WTH?
YesNo
YesNo
Tips for Optimize network power
Prefetch data
Batch transfer and connections
Detect network state
Avoid polling
Use caching
Varying download pattern
Monitor charge level and state
Monitor and determine docking state
Programmatic control over features
Use the DDMS Network Traffic Tool
Prefetch Data
A way to avoid number of independent data transfer sessions
Allows user to download all the data in a given period in a single burst & connection, at full
capacity
Reduces radio activations and bandwidth, improves battery life and latency
e.g Music Player, News reader
Batch transfer and connections
Bundle your data transfers and create a pending transfer
queue
Transfer as much data as possible during each transfer
session to limit the number of sessions you require
Detect Network State
WiFi will be fast and Cheap - give priority
Are you on Roaming?
Avoid connections if NO Network is available.
Manipulate Broadcast receivers on demand
Using GCM instead of Polling
New News?
No
New News?
No
New News?
No
New News available
OK
Use Caching to avoid redundant download
Varying Download Pattern
Modify the pattern based on connection type
Download more data per session on faster networks
..but involve user in this scene
Force a quicker pre-fetch
Monitor charge level and state
Maximise app updates and its frequency when battery is
charging
Avoid updates when charge state is discharging
Monitor and Determine Docking State
Dock-State is typically linked to the charging stage
Opt to update the frequency of update when charged with
desktop dock than car dock
Dock Types
Car Desk
Low-End
(Analog) Desk
High-End
(Digital) Desk
Programmatic Control over Features
Darker Color, Lesser Consumption
Brightness Level have more impact
An expensive component if used in an app
Avoid fine-point location, unless really necessary
Sync smartly
Tips for using App’s Data
Using Services Sparingly ( use IntentService)
Release memory when User switch apps( onTrimMemory() )
Release memory as memory becomes tight
Avoid OutofMemory
Avoid wasting memory with bitmaps
Be aware of memory overhead
Avoid dependency injection frameworks
Be careful about using external libraries
Optimize overall performance
Use ProGuard to strip out any unneeded code
Use ZipAlign ( avoids high RAM usage)
Analyze your RAM usage
Use Multiple Processes ( e.g music player)
@prajyotm
+prajyotmainkar
Thank	You!
ANDROCID
MEDIA PVT. LTD.
PRAJYOT MAINKAR
prajyotm@androcid.com
+91 98229 87513
CONTACT DETAILS
http://www.androcid.com

Weitere ähnliche Inhalte

Andere mochten auch

Innovation support & growth vouchers 2014 - what you need to know
Innovation support & growth vouchers 2014 - what you need to knowInnovation support & growth vouchers 2014 - what you need to know
Innovation support & growth vouchers 2014 - what you need to knowTangram Limited
 
Bachelor Thesis Presentation (Italian)
Bachelor Thesis Presentation (Italian)Bachelor Thesis Presentation (Italian)
Bachelor Thesis Presentation (Italian)Jovan Stevovic
 
Nitrodroid 2013 - Closing Report
Nitrodroid 2013 - Closing ReportNitrodroid 2013 - Closing Report
Nitrodroid 2013 - Closing ReportPrajyot Mainkar
 
Growth voucherspresentationv2
Growth voucherspresentationv2Growth voucherspresentationv2
Growth voucherspresentationv2Tangram Limited
 
PervasiveHealth - Patient (or Personal) Targeted Therapy Advisor
PervasiveHealth -  Patient (or Personal) Targeted Therapy AdvisorPervasiveHealth -  Patient (or Personal) Targeted Therapy Advisor
PervasiveHealth - Patient (or Personal) Targeted Therapy AdvisorJovan Stevovic
 
Android Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetAndroid Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetPrajyot Mainkar
 
Android Cloud to Device Messaging Framework
Android Cloud to Device Messaging FrameworkAndroid Cloud to Device Messaging Framework
Android Cloud to Device Messaging FrameworkPrajyot Mainkar
 
Building Hybrid Applications using PhoneGap
Building Hybrid Applications using PhoneGapBuilding Hybrid Applications using PhoneGap
Building Hybrid Applications using PhoneGapPrajyot Mainkar
 
Evolution google-android play
Evolution google-android playEvolution google-android play
Evolution google-android playPrajyot Mainkar
 
Android Power Optimization: May the Power be with you
Android Power Optimization: May the Power be with youAndroid Power Optimization: May the Power be with you
Android Power Optimization: May the Power be with youPrajyot Mainkar
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgetsPrajyot Mainkar
 

Andere mochten auch (15)

會訊2012 06-08
會訊2012 06-08會訊2012 06-08
會訊2012 06-08
 
Innovation support & growth vouchers 2014 - what you need to know
Innovation support & growth vouchers 2014 - what you need to knowInnovation support & growth vouchers 2014 - what you need to know
Innovation support & growth vouchers 2014 - what you need to know
 
會訊2012 12-16
會訊2012 12-16會訊2012 12-16
會訊2012 12-16
 
Bachelor Thesis Presentation (Italian)
Bachelor Thesis Presentation (Italian)Bachelor Thesis Presentation (Italian)
Bachelor Thesis Presentation (Italian)
 
Nitrodroid 2013 - Closing Report
Nitrodroid 2013 - Closing ReportNitrodroid 2013 - Closing Report
Nitrodroid 2013 - Closing Report
 
Growth voucherspresentationv2
Growth voucherspresentationv2Growth voucherspresentationv2
Growth voucherspresentationv2
 
PervasiveHealth - Patient (or Personal) Targeted Therapy Advisor
PervasiveHealth -  Patient (or Personal) Targeted Therapy AdvisorPervasiveHealth -  Patient (or Personal) Targeted Therapy Advisor
PervasiveHealth - Patient (or Personal) Targeted Therapy Advisor
 
Android Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetAndroid Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection Widget
 
DroidSync 2014
DroidSync 2014DroidSync 2014
DroidSync 2014
 
Android Cloud to Device Messaging Framework
Android Cloud to Device Messaging FrameworkAndroid Cloud to Device Messaging Framework
Android Cloud to Device Messaging Framework
 
Building Hybrid Applications using PhoneGap
Building Hybrid Applications using PhoneGapBuilding Hybrid Applications using PhoneGap
Building Hybrid Applications using PhoneGap
 
Evolution google-android play
Evolution google-android playEvolution google-android play
Evolution google-android play
 
Android Power Optimization: May the Power be with you
Android Power Optimization: May the Power be with youAndroid Power Optimization: May the Power be with you
Android Power Optimization: May the Power be with you
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgets
 

Ähnlich wie Android performance

HH QUALCOMM how to minimize the power consumption of your app
HH QUALCOMM how to minimize the power consumption of your appHH QUALCOMM how to minimize the power consumption of your app
HH QUALCOMM how to minimize the power consumption of your appSatya Harish
 
How to Minimize Your App’s Power Consumption
How to Minimize Your App’s Power Consumption How to Minimize Your App’s Power Consumption
How to Minimize Your App’s Power Consumption Qualcomm Developer Network
 
How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performancerickschwar
 
State Of Mobile Web Performance
State Of Mobile Web PerformanceState Of Mobile Web Performance
State Of Mobile Web PerformanceGuy Podjarny
 
Vivit webinar dec 2010 - Mobile Tipping Point
Vivit webinar   dec 2010 - Mobile Tipping PointVivit webinar   dec 2010 - Mobile Tipping Point
Vivit webinar dec 2010 - Mobile Tipping PointShunra
 
Cloud-Based, Automated Mobile App Testing for the Enterprise
Cloud-Based, Automated Mobile App Testing for the EnterpriseCloud-Based, Automated Mobile App Testing for the Enterprise
Cloud-Based, Automated Mobile App Testing for the EnterpriseTechWell
 
Finding the best Radio Network Planning and Radio Network Optimization software
Finding the best Radio Network Planning and Radio Network Optimization softwareFinding the best Radio Network Planning and Radio Network Optimization software
Finding the best Radio Network Planning and Radio Network Optimization softwareMuhammad Waqas Akram
 
Doug Sillars on App Optimization
Doug Sillars on App OptimizationDoug Sillars on App Optimization
Doug Sillars on App Optimizationwipjam
 
Mobile performance testing
Mobile performance testingMobile performance testing
Mobile performance testinghunz
 
PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...
PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...
PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...Olivier Le Goaër
 
Adobe’s eCommerce Digital Transformation Journey
Adobe’s eCommerce Digital Transformation JourneyAdobe’s eCommerce Digital Transformation Journey
Adobe’s eCommerce Digital Transformation JourneyDynatrace
 
Fanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone DeveloperFanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone DeveloperSam Basu
 
Preparing your QA team for mobile testing
Preparing your QA team for mobile testingPreparing your QA team for mobile testing
Preparing your QA team for mobile testingGeoffrey Goetz
 
Campaignr Wm 2008
Campaignr Wm 2008Campaignr Wm 2008
Campaignr Wm 2008shassant2
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...NITHIN S.S
 
Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...
Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...
Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...rickschwar
 

Ähnlich wie Android performance (20)

Building for next india
Building for next indiaBuilding for next india
Building for next india
 
HH QUALCOMM how to minimize the power consumption of your app
HH QUALCOMM how to minimize the power consumption of your appHH QUALCOMM how to minimize the power consumption of your app
HH QUALCOMM how to minimize the power consumption of your app
 
How to Minimize Your App’s Power Consumption
How to Minimize Your App’s Power Consumption How to Minimize Your App’s Power Consumption
How to Minimize Your App’s Power Consumption
 
How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performance
 
State Of Mobile Web Performance
State Of Mobile Web PerformanceState Of Mobile Web Performance
State Of Mobile Web Performance
 
Moving To SaaS
Moving To SaaSMoving To SaaS
Moving To SaaS
 
Vivit webinar dec 2010 - Mobile Tipping Point
Vivit webinar   dec 2010 - Mobile Tipping PointVivit webinar   dec 2010 - Mobile Tipping Point
Vivit webinar dec 2010 - Mobile Tipping Point
 
Cloud-Based, Automated Mobile App Testing for the Enterprise
Cloud-Based, Automated Mobile App Testing for the EnterpriseCloud-Based, Automated Mobile App Testing for the Enterprise
Cloud-Based, Automated Mobile App Testing for the Enterprise
 
Progressive Web Apps
Progressive Web AppsProgressive Web Apps
Progressive Web Apps
 
Finding the best Radio Network Planning and Radio Network Optimization software
Finding the best Radio Network Planning and Radio Network Optimization softwareFinding the best Radio Network Planning and Radio Network Optimization software
Finding the best Radio Network Planning and Radio Network Optimization software
 
Doug Sillars on App Optimization
Doug Sillars on App OptimizationDoug Sillars on App Optimization
Doug Sillars on App Optimization
 
Mobile performance testing
Mobile performance testingMobile performance testing
Mobile performance testing
 
PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...
PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...
PowDroid: Energy Profiling of Android Applications (ASE 2021 [Workshop] SUSTA...
 
Adobe’s eCommerce Digital Transformation Journey
Adobe’s eCommerce Digital Transformation JourneyAdobe’s eCommerce Digital Transformation Journey
Adobe’s eCommerce Digital Transformation Journey
 
Mobile Monitoring for Peak Events
Mobile Monitoring for Peak EventsMobile Monitoring for Peak Events
Mobile Monitoring for Peak Events
 
Fanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone DeveloperFanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone Developer
 
Preparing your QA team for mobile testing
Preparing your QA team for mobile testingPreparing your QA team for mobile testing
Preparing your QA team for mobile testing
 
Campaignr Wm 2008
Campaignr Wm 2008Campaignr Wm 2008
Campaignr Wm 2008
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
 
Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...
Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...
Samsung Developer's Conference - Maximize App Performance while Minimizing Ba...
 

Kürzlich hochgeladen

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Kürzlich hochgeladen (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

Android performance

  • 1. May the “Performance” be with you DAIICT - June 2016
  • 2.
  • 3. source: app annie Top Apps on Google Play, United States, Applications
  • 6. Battery Life is very important to the consumers Battery Life WiFi Speed/Quality Touch Screen Screen/Display Size Display Type/ Quality Connectivity Memory Display Resolution 0 10 20 30 40 50 60 70 80 90 100 38% 42% 44% 46% 46% 48% 52% 72% Source: Qualcomm Band Tracker, Market Search Group, US
  • 7. ..but it is a Developer’s concern Power is a part of User Experience Power is important to the Mobile users “Bad” ratings / Uninstall is the only escape
  • 8. Compromising For Benefits 20-30% Core Functions 70% - Ads, GPS, Analytics
  • 9. …You need to balance 20-30% Core Functions 70% - Ads, GPS, Analytics Reducing Battery Drain
  • 10. Just the right moment (no sleep?) Uploading of Files/Songs Cropping of Images Unwanted loading Wakeloack Alarm manager Job scheduler
  • 11. Thank you “network” request if Polling for network requests Response Packets Device being awake
  • 12. But you can check the stats Wakelock Time Network Time
  • 15. Moment you first write your GPS Code
  • 16. GPS: God of Battery Drain Do you really need GPS? Approximation? Ask UserCarry On WTH? YesNo YesNo
  • 17. Tips for Optimize network power Prefetch data Batch transfer and connections Detect network state Avoid polling Use caching Varying download pattern Monitor charge level and state Monitor and determine docking state Programmatic control over features Use the DDMS Network Traffic Tool
  • 18. Prefetch Data A way to avoid number of independent data transfer sessions Allows user to download all the data in a given period in a single burst & connection, at full capacity Reduces radio activations and bandwidth, improves battery life and latency e.g Music Player, News reader
  • 19. Batch transfer and connections Bundle your data transfers and create a pending transfer queue Transfer as much data as possible during each transfer session to limit the number of sessions you require
  • 20. Detect Network State WiFi will be fast and Cheap - give priority Are you on Roaming? Avoid connections if NO Network is available. Manipulate Broadcast receivers on demand
  • 21. Using GCM instead of Polling New News? No New News? No New News? No New News available OK
  • 22. Use Caching to avoid redundant download
  • 23. Varying Download Pattern Modify the pattern based on connection type Download more data per session on faster networks ..but involve user in this scene Force a quicker pre-fetch
  • 24. Monitor charge level and state Maximise app updates and its frequency when battery is charging Avoid updates when charge state is discharging
  • 25. Monitor and Determine Docking State Dock-State is typically linked to the charging stage Opt to update the frequency of update when charged with desktop dock than car dock Dock Types Car Desk Low-End (Analog) Desk High-End (Digital) Desk
  • 26. Programmatic Control over Features Darker Color, Lesser Consumption Brightness Level have more impact An expensive component if used in an app Avoid fine-point location, unless really necessary
  • 28. Tips for using App’s Data Using Services Sparingly ( use IntentService) Release memory when User switch apps( onTrimMemory() ) Release memory as memory becomes tight Avoid OutofMemory Avoid wasting memory with bitmaps Be aware of memory overhead Avoid dependency injection frameworks Be careful about using external libraries Optimize overall performance Use ProGuard to strip out any unneeded code Use ZipAlign ( avoids high RAM usage) Analyze your RAM usage Use Multiple Processes ( e.g music player)
  • 30. ANDROCID MEDIA PVT. LTD. PRAJYOT MAINKAR prajyotm@androcid.com +91 98229 87513 CONTACT DETAILS http://www.androcid.com