This could be done easily by rotating the screen while the system is logging in.
The Android Application Lifecycle does not automatically preserve asynchronous tasks when an activity is destroyed (e.g. when the user changes screen orientantion) hence AsyncTask objects, or any asynchronous routine, need to be attached to Android Fragments.
Android allows some Fragments to be retained so it can bypass Android's destroy-create cycle, so AsyncTasks can be preserved by being attached to them. (Source)
This could be done easily by rotating the screen while the system is logging in.
The Android Application Lifecycle does not automatically preserve asynchronous tasks when an activity is destroyed (e.g. when the user changes screen orientantion) hence
AsyncTaskobjects, or any asynchronous routine, need to be attached to Android Fragments.Android allows some Fragments to be retained so it can bypass Android's destroy-create cycle, so AsyncTasks can be preserved by being attached to them. (Source)