Tip: Use cold start time to make your app look much faster
Use cold start time effectively with a branded launch theme
Pro-tip by +Ian Lake
When your app isn’t in memory and is launched, that ‘cold start’ can take significantly longer than if your app is already in memory. Depending on the size of your app and what you’re doing in your Application’s onCreate() (as little as possible I hope!), there may be lag between when the user starts your app and your Activity’s onCreate() is actually called. During that time, the window manager makes its best effort to draw a placeholder UI using elements from your theme such as the background and status bar color. More...
This is a new technique that provides visual consistency between window preview and real content, achieving the illusion of quick start up for you app.
Cold start time is the time between user launches your app and Activity.onCreate()is called. During this period of time, the framework loads your window background as a preview of your app, and then transition into the real content of your app when it is ready.
Some pro-tips has been given on showing a primary color or your product logo as the preview, however they all lack the visual consistency because such time can be subtly short that any preview inconsistent with the app's content can become kind of a glitch.
So now with some configuration and code, you can have a consistent preview for your app.
Read more on GitHub https://github.com/DreaminginCodeZH/MaterialColdStart
Software Developer | Manager | Mobile & Cloud
9 年nice tip, 10x.