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
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
10 Raunchy Movies on Netflix You Won’t Regret Watching

10 Raunchy Movies on Netflix You Won’t Regret Watching

May 20, 2024
Japanese Space Industry Startup “Synspective” Raises US $100 Million in Funding

Japanese Space Industry Startup “Synspective” Raises US $100 Million in Funding

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
laptop on glass table

Automat-it Cuts Deployment Friction as Monce Scales AI Order Processing on AWS

April 13, 2026
Lee's Famous Recipe Chicken

Why Lee’s Famous Recipe Chicken Is Betting on Hi Auto to Quietly Rewire the Drive-Thru

April 9, 2026
computer generated image of letters

San Francisco Tribune Lists 11 HumanX Startups Moving AI Closer to the Operating Core

April 8, 2026
Impala CEO and Highrise AI CEO

The Industrialization of AI Infrastructure: What Impala and Highrise AI Reveal About the Next Scaling Frontier

April 7, 2026
Employee Time Tracking

What is an Employee Time Tracking Solution? A Definite Guide for 2026

March 31, 2026
Voltify founders

Voltify Raises $30 Million Seed Round as It Challenges $1 Trillion Rail Electrification Model

March 31, 2026

Recommended

laptop on glass table

Automat-it Cuts Deployment Friction as Monce Scales AI Order Processing on AWS

April 13, 2026
Lee's Famous Recipe Chicken

Why Lee’s Famous Recipe Chicken Is Betting on Hi Auto to Quietly Rewire the Drive-Thru

April 9, 2026
computer generated image of letters

San Francisco Tribune Lists 11 HumanX Startups Moving AI Closer to the Operating Core

April 8, 2026
Impala CEO and Highrise AI CEO

The Industrialization of AI Infrastructure: What Impala and Highrise AI Reveal About the Next Scaling Frontier

April 7, 2026

Categories

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

Tags

AI AI QSRs Allseated Automat-it AWS B2B marketing Business CISO CISO Whisperer Collaborations Companies To Watch cryptocurrency Cybersecurity Entrepreneur Fetcherr Finance FINQ Fintech Funding Announcement hi-tech Hi Auto Impala Investing Investors investorsummit Israel israelitech Leaders LinkedIn Leaders Metaverse Mindset Minnesota omri hurwitz PointFive PR QSR Real Estate start- up startupnation Startups Startups On Demand Tech Tech leaders Unlimited Robotics VC
  • 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