Loading core/java/android/app/Application.java +13 −3 Original line number Original line Diff line number Diff line Loading @@ -86,11 +86,21 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 { /** /** * Called when the application is starting, before any activity, service, * Called when the application is starting, before any activity, service, * or receiver objects (excluding content providers) have been created. * or receiver objects (excluding content providers) have been created. * Implementations should be as quick as possible (for example using * * <p>Implementations should be as quick as possible (for example using * lazy initialization of state) since the time spent in this function * lazy initialization of state) since the time spent in this function * directly impacts the performance of starting the first activity, * directly impacts the performance of starting the first activity, * service, or receiver in a process. * service, or receiver in a process.</p> * If you override this method, be sure to call super.onCreate(). * * <p>If you override this method, be sure to call {@code super.onCreate()}.</p> * * <p class="note">Be aware that direct boot may also affect callback order on * Android {@link android.os.Build.VERSION_CODES#N} and later devices. * Until the user unlocks the device, only direct boot aware components are * allowed to run. You should consider that all direct boot unaware * components, including such {@link android.content.ContentProvider}, are * disabled until user unlock happens, especially when component callback * order matters.</p> */ */ @CallSuper @CallSuper public void onCreate() { public void onCreate() { Loading Loading
core/java/android/app/Application.java +13 −3 Original line number Original line Diff line number Diff line Loading @@ -86,11 +86,21 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 { /** /** * Called when the application is starting, before any activity, service, * Called when the application is starting, before any activity, service, * or receiver objects (excluding content providers) have been created. * or receiver objects (excluding content providers) have been created. * Implementations should be as quick as possible (for example using * * <p>Implementations should be as quick as possible (for example using * lazy initialization of state) since the time spent in this function * lazy initialization of state) since the time spent in this function * directly impacts the performance of starting the first activity, * directly impacts the performance of starting the first activity, * service, or receiver in a process. * service, or receiver in a process.</p> * If you override this method, be sure to call super.onCreate(). * * <p>If you override this method, be sure to call {@code super.onCreate()}.</p> * * <p class="note">Be aware that direct boot may also affect callback order on * Android {@link android.os.Build.VERSION_CODES#N} and later devices. * Until the user unlocks the device, only direct boot aware components are * allowed to run. You should consider that all direct boot unaware * components, including such {@link android.content.ContentProvider}, are * disabled until user unlock happens, especially when component callback * order matters.</p> */ */ @CallSuper @CallSuper public void onCreate() { public void onCreate() { Loading