Activity

Page 1 2 3 4 5 6

public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults, int deviceId) source
public boolean shouldShowRequestPermissionRationale(String permission) source
public boolean shouldShowRequestPermissionRationale(String permission, int deviceId) source

Input: Window.Callback and KeyEvent.Callback

public void onUserInteraction() empty body source
public boolean dispatchTouchEvent(MotionEvent ev) source
public boolean dispatchKeyEvent(KeyEvent event) source
public boolean dispatchKeyShortcutEvent(KeyEvent event) source
public boolean dispatchTrackballEvent(MotionEvent ev) source
public boolean dispatchGenericMotionEvent(MotionEvent ev) source
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) source
public boolean onTouchEvent(MotionEvent event) source
public boolean onTrackballEvent(MotionEvent event) source
public boolean onGenericMotionEvent(MotionEvent event) source
public boolean onKeyShortcut(int keyCode, KeyEvent event) source
public boolean onKeyDown(int keyCode, KeyEvent event) source
public boolean onKeyLongPress(int keyCode, KeyEvent event) source
public boolean onKeyUp(int keyCode, KeyEvent event) source
public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) source
public void onBackPressed() deprecated source
public boolean onNavigateUp() source
public Intent getParentActivityIntent() source

The manifest's parent activity, or null when the activity names none.

public boolean shouldUpRecreateTask(Intent targetIntent) source

One task holds every activity of the app, so the parent is always in it.

Finishes this activity alone, as when the parent is not found: the activity below it comes back.

public boolean onSearchRequested() source
public boolean onSearchRequested(SearchEvent searchEvent) source
public void onPointerCaptureChanged(boolean hasCapture) empty body source

The rest of Window.Callback

public View onCreatePanelView(int featureId) source
public boolean onCreatePanelMenu(int featureId, Menu menu) source
public boolean onPreparePanel(int featureId, View view, Menu menu) source
public boolean onMenuOpened(int featureId, Menu menu) source
public boolean onMenuItemSelected(int featureId, MenuItem item) source
public void onPanelClosed(int featureId, Menu menu) empty body source
public boolean onCreateOptionsMenu(Menu menu) source
public boolean onPrepareOptionsMenu(Menu menu) source
public boolean onOptionsItemSelected(MenuItem item) source
public void invalidateOptionsMenu() empty body source
public void openOptionsMenu() empty body source
public void closeOptionsMenu() empty body source
public void onWindowAttributesChanged(WindowManager.LayoutParams params) empty body source
public void onContentChanged() empty body source
public void onWindowFocusChanged(boolean hasFocus) empty body source
public void onAttachedToWindow() empty body 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.