Activity

Class of android.app · Activity.java · Android's reference

public class Activity extends ContextThemeWrapper implements LayoutInflater.Factory2, Window.Callback, KeyEvent.Callback, View.OnCreateContextMenuListener, ComponentCallbacks2

Activity ← ContextThemeWrapper ← ContextWrapper ← Context

A screen of the app. The runtime (snx.android.app.Activities) makes it, attaches it, and drives its lifecycle in Android's order: the pre and post ActivityLifecycleCallbacks around each step, the step's own from its super call.

Extended in the framework by

Page 1 2 3 4 5 6

Members

public static final int RESULT_CANCELED = 0 source
public static final int RESULT_OK = -1 source
public static final int RESULT_FIRST_USER = 1 source
public static final int DEFAULT_KEYS_DISABLE = 0 source
public static final int DEFAULT_KEYS_DIALER = 1 source
public static final int DEFAULT_KEYS_SHORTCUT = 2 source
public static final int DEFAULT_KEYS_SEARCH_LOCAL = 3 source
public static final int DEFAULT_KEYS_SEARCH_GLOBAL = 4 source
public static final int OVERRIDE_TRANSITION_OPEN = 0 source
public static final int OVERRIDE_TRANSITION_CLOSE = 1 source
protected static final int[] FOCUSED_STATE_SET source
public Activity() source
public final void attach(Context base, Application app, Intent intent, ActivityInfo info, WindowManager wm, Object lastNonConfig) source

The runtime's attach: the context, the application, the intent and the window.

public Intent getIntent() source
public Configuration appliedConfiguration() source

The runtime's: the manifest's entry, and the configuration the activity runs with

public void applyConfiguration(Configuration config) source
public void setIntent(Intent newIntent) source
public final Application getApplication() source
public final boolean isChild() source
public final Activity getParent() source
public WindowManager getWindowManager() source
public Window getWindow() source
public final boolean requestWindowFeature(int featureId) source
public android.window.OnBackInvokedDispatcher getOnBackInvokedDispatcher() source
public ComponentName getComponentName() source
public ComponentName getCallingActivity() source
public String getCallingPackage() source
public android.net.Uri getReferrer() source
public int getTaskId() source
public boolean isTaskRoot() source
public boolean moveTaskToBack(boolean nonRoot) source
public View getCurrentFocus() source
public FragmentManager getFragmentManager() source
public ActionBar getActionBar() source
public MenuInflater getMenuInflater() source
public LayoutInflater getLayoutInflater() source
public CharSequence getTitle() source

Page 1 2 3 4 5 6


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.