Activities

Class of snx.android.app · Activities.java

public final class Activities

The task of the app's activities, as one task of Android's activity manager: a stack with the resumed activity on top. Each step runs on the main thread, posted as the system's transactions are. When the last activity finishes, the process ends.

Methods

public static void start(Activity caller, Intent intent, int requestCode, Bundle options) source
public static void launchMain(String className) source

The first activity, from the launcher's intent.

public static void finish(Activity activity) source
public static void finishAll() source

Every activity finished, from the top down, as the window's close does: the process then ends

public static void configurationChanged(android.content.res.Configuration config) source

A change of the device's configuration (the display turned or resized), on the main thread as Android's ActivityThread gives it: the application's callbacks first, then each activity. An activity whose manifest names every changed field in android:configChanges gets onConfigurationChanged, with its views; another one is made again (recreate), as Android relaunches it.

public static void recreate(Activity activity) source

The activity made again, as for a configuration change: its state saved, destroyed and launched anew.


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.