cold-start

Android emulator - Don't save state by default

孤人 提交于 2019-11-28 05:40:20
In the latest update for Android studio, the emulator has started saving snapshots of the current state of the device by default and going back to that snapshot when reopened, which is not the behavior that I want. How can I disable that and go back to the previous behavior, where it just closes and resets the emulator? UI after hitting the X button to close Android Studio 3.0.1 , with Emulator version 27.0.2 and HAXM 6.2.1 disable that and go back to the previous behavior Unselect quick boot as shown below This is default behaviour from update of Android Studio 3.0 Please unselect quick boot

Android - Prevent white screen at startup

浪尽此生 提交于 2019-11-27 10:03:10
As we all know, many Android apps display a white screen very briefly before their first Activity comes into focus. This problem is observed in the following cases: Android apps that extend the global Application class and perform major initializations therein. The Application object is always created before the first Activity (a fact that can be observed in the debugger), so this makes sense. This is the cause of the delay in my case. Android apps that display the default preview window before the splash screen. Setting android:windowDisablePreview = "true" obviously does not work here. Nor