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.
public static final int RESULT_CANCELED = 0 sourcepublic static final int RESULT_OK = -1 sourcepublic static final int RESULT_FIRST_USER = 1 sourcepublic static final int DEFAULT_KEYS_DISABLE = 0 sourcepublic static final int DEFAULT_KEYS_DIALER = 1 sourcepublic static final int DEFAULT_KEYS_SHORTCUT = 2 sourcepublic static final int DEFAULT_KEYS_SEARCH_LOCAL = 3 sourcepublic static final int DEFAULT_KEYS_SEARCH_GLOBAL = 4 sourcepublic static final int OVERRIDE_TRANSITION_OPEN = 0 sourcepublic static final int OVERRIDE_TRANSITION_CLOSE = 1 sourceprotected static final int[] FOCUSED_STATE_SET sourcepublic Activity() sourcepublic final void attach(Context base, Application app, Intent intent, ActivityInfo info, WindowManager wm, Object lastNonConfig) sourceThe runtime's attach: the context, the application, the intent and the window.
public Intent getIntent() sourcepublic Configuration appliedConfiguration() sourceThe runtime's: the manifest's entry, and the configuration the activity runs with
public void applyConfiguration(Configuration config) sourcepublic void setIntent(Intent newIntent) sourcepublic final Application getApplication() sourcepublic final boolean isChild() sourcepublic final Activity getParent() sourcepublic WindowManager getWindowManager() sourcepublic Window getWindow() sourcepublic final boolean requestWindowFeature(int featureId) sourcepublic android.window.OnBackInvokedDispatcher getOnBackInvokedDispatcher() sourcepublic ComponentName getComponentName() sourcepublic ComponentName getCallingActivity() sourcepublic String getCallingPackage() sourcepublic android.net.Uri getReferrer() sourcepublic int getTaskId() sourcepublic boolean isTaskRoot() sourcepublic boolean moveTaskToBack(boolean nonRoot) sourcepublic View getCurrentFocus() sourcepublic FragmentManager getFragmentManager() sourcepublic ActionBar getActionBar() sourcepublic MenuInflater getMenuInflater() sourcepublic LayoutInflater getLayoutInflater() sourcepublic CharSequence getTitle() sourceMade 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.