New York Tech Media
  • News
  • FinTech
  • AI & Robotics
  • Cybersecurity
  • Startups & Leaders
  • Venture Capital
No Result
View All Result
  • News
  • FinTech
  • AI & Robotics
  • Cybersecurity
  • Startups & Leaders
  • Venture Capital
No Result
View All Result
New York Tech Media
No Result
View All Result
Home Startups & Leaders

Improve Android App Startup Times Like Facebook and Google Do

New York Tech Editorial Team by New York Tech Editorial Team
December 16, 2021
in Startups & Leaders
0
Improve Android App Startup Times Like Facebook and Google Do
Share on FacebookShare on Twitter

In a recent article, engineers from Google and Facebook provided their hints at what matters the most to reduce the time it takes for an Android app to become responsive on launch and ensure an optimal user experience.

App startup is a key factor to keep users engaged and to grow adoption, say Facebook engineers. The first step to improve an app startup times is to measure them using Android two standard metrics: Time-To-Full-Display (TTFD), which is the time it takes for an app to be ready for user interaction, and Time-To-Initial-Display (TTID), which measures the time for an app to become minimally functional, for example allowing the user to navigate around while still downloading some content.

Depending on the app, TTFD could be a more relevant metrics than TTID, or vice-versa, but TTID is always included in TTFD, so TTID is a good starting point for optimization. Furthermore, TTID is used by Google to rank apps in Google Play listings.

Facebook’s startup metric is the percentage of app starts that they consider “bad,” which is any start that either has a TTFD longer than 2.5 seconds OR any part of startup that is unsuccessful (e.g. an image fails to load or the app crashes).

Both TTID and TTFD can be easily instrumented using Android system calls: TTID is captured by logcat’s Displayed value, while TTFD can be logged to logcat using [reportFullyDrawn](https://developer.android.com/reference/android/app/Activity#reportFullyDrawn()).

Calling reportFullyDrawn is an especially important practice since it provides useful information for Android to optimize resource usage to prioritize any work happening before that call, says Google engineers.

Calling this method when your app is in fully usable state will improve your app startup time. Every application should be using this API! And don’t forget to measure it.

TTID and TTFD provide solid ground to understand what can and should be optimized. To this aim, Facebook engineers enumerate a number of recommendations, such as being especially zealous about crashes at startup, parallelizing work using all available cores, and to postpone or send to the background any work that is not related to the app startup experience.

Using a cache can be a great way to speed up things and populating your app with meaningful content, but cached content should be used only when it make sense, i.e. when it is not stale.

Evaluate whether it’s better to optimize for showing fresh content as quickly as possible with a timeout for showing stale content if the network is slow, or to just show what’s available immediately if the network is offline.

Optimizing startup times requires carefully understanding what is going on at launch, which is the critical path, and where the roadblocks are. For this, Android provides a number of tools, including trace and Jetpack Macrobenchmark: Startup. Those can also help understand if an app is trying to do too much on launch trying to initialize too many things. Another useful tool is the Jetpack App startup library, which provides a way to initialize components at application startup in a specified order.

There is much more to app startup optimization that can be summarized here, so do not miss the original article to get the full detail.


Credit: Source link

Previous Post

How to implement security into software design from the get-go

Next Post

L’Occitane Group’s VC Fund Invests in Lingerie Brand Lolo Paris – WWD

New York Tech Editorial Team

New York Tech Editorial Team

New York Tech Media is a leading news publication that aims to provide the latest tech news, fintech, AI & robotics, cybersecurity, startups & leaders, venture capital, and much more!

Next Post
L’Occitane Group’s VC Fund Invests in Lingerie Brand Lolo Paris – WWD

L’Occitane Group’s VC Fund Invests in Lingerie Brand Lolo Paris – WWD

  • Trending
  • Comments
  • Latest
Meet the Top 10 K-Pop Artists Taking Over 2024

Meet the Top 10 K-Pop Artists Taking Over 2024

March 17, 2024
Clubhouse will soon let you pin links to the top of rooms

Clubhouse will soon let you pin links to the top of rooms

October 23, 2021
10 Raunchy Movies on Netflix You Won’t Regret Watching

10 Raunchy Movies on Netflix You Won’t Regret Watching

May 20, 2024
Panther for AWS allows security teams to monitor their AWS infrastructure in real-time

Many businesses lack a formal ransomware plan

March 29, 2022
Zach Mulcahey, 25 | Cover Story | Style Weekly

Zach Mulcahey, 25 | Cover Story | Style Weekly

March 29, 2022
How To Pitch The Investor: Ronen Menipaz, Founder of M51

How To Pitch The Investor: Ronen Menipaz, Founder of M51

March 29, 2022
Startups On Demand: renovai is the Netflix of Online Shopping

Startups On Demand: renovai is the Netflix of Online Shopping

2
Robot Company Offers $200K for Right to Use One Applicant’s Face and Voice ‘Forever’

Robot Company Offers $200K for Right to Use One Applicant’s Face and Voice ‘Forever’

1
Menashe Shani Accessibility High Tech on the low

Revolutionizing Accessibility: The Story of Purple Lens

1

Netgear announces a $1,500 Wi-Fi 6E mesh router

0
These apps let you customize Windows 11 to bring the taskbar back to life

These apps let you customize Windows 11 to bring the taskbar back to life

0
This bipedal robot uses propeller arms to slackline and skateboard

This bipedal robot uses propeller arms to slackline and skateboard

0
Bloom Security and Cyera Turn Data Classification into Real-Time Enforcement at the Endpoint

Bloom Security and Cyera Turn Data Classification into Real-Time Enforcement at the Endpoint

October 22, 2026
Pluto Security Emerges From Stealth With $42M in Funding After Building an AI Security Community

Pluto Security Emerges From Stealth With $42M in Funding After Building an AI Security Community

October 13, 2026
man ordering at a drive thru

Accents, Engine Noise and “No Pickles”: Inside the Hardest Job in Voice AI

October 4, 2026
Essential Car Care Tips for Better Performance and Longer Life

Essential Car Care Tips for Better Performance and Longer Life

October 1, 2026
EB1A graphic design

EB1A Experts Surpasses 330+ Approvals Milestone Amid Rising 2026 EB-1A Approval Rates

September 30, 2026
Upwind team

Upwind Brings Aegis Into Its Cloud and AI Security Platform With New AI Labs

September 23, 2026

Recommended

Bloom Security and Cyera Turn Data Classification into Real-Time Enforcement at the Endpoint

Bloom Security and Cyera Turn Data Classification into Real-Time Enforcement at the Endpoint

October 22, 2026
Pluto Security Emerges From Stealth With $42M in Funding After Building an AI Security Community

Pluto Security Emerges From Stealth With $42M in Funding After Building an AI Security Community

October 13, 2026
man ordering at a drive thru

Accents, Engine Noise and “No Pickles”: Inside the Hardest Job in Voice AI

October 4, 2026
Essential Car Care Tips for Better Performance and Longer Life

Essential Car Care Tips for Better Performance and Longer Life

October 1, 2026

Categories

  • AI & Robotics
  • Benzinga
  • Cybersecurity
  • FinTech
  • New York Tech
  • News
  • Startups & Leaders
  • Venture Capital

Tags

AI AI QSRs AI security Automat-it AWS B2B marketing Bloom Security Business CISO CISO Whisperer Collaborations Companies To Watch Cybersecurity Drive-Thru Enterprise AI Entrepreneur Fetcherr Finance FINQ Fintech Funding Announcement Hi Auto HumanX Impala Investing Investors investorsummit israelitech Mate Security Mindset Minnesota omri hurwitz Perion PointFive PR QSR Real Estate start- up startupnation Startups Startups On Demand Tech Tech leaders VC venture capital
  • Contact Us
  • Privacy Policy
  • Terms and conditions

© 2024 All Rights Reserved - New York Tech Media

No Result
View All Result
  • News
  • FinTech
  • AI & Robotics
  • Cybersecurity
  • Startups & Leaders
  • Venture Capital

© 2024 All Rights Reserved - New York Tech Media