getSupportParentActivityIntent

Obtain an Intent that will launch an explicit target activity
specified by sourceActivity's PARENT_ACTIVITY <meta-data>
element in the application's manifest. If the device is running
Jellybean or newer, the android:parentActivityName attribute will be preferred
if it is present.

The default implementation of this method adds the parent chain of this activity
as specified in the manifest to the supplied TaskStackBuilder. Applications
may choose to override this method to construct the desired task stack in a different
way.

onWindowStartingSupportActionMode

Called when a support action mode is being started for this window. Gives the
callback an opportunity to handle the action mode in its own unique and
beautiful way. If this method returns null the system can choose a way
to present the mode or choose not to start the mode at all.

Parameters

callback

ActionMode.Callback: Callback to control the lifecycle of this action mode

setSupportActionBar

When set to a non-null value the getActionBar() method will return
an ActionBar object that can be used to control the given
toolbar as if it were a traditional window decor action bar. The toolbar's menu will be
populated with the Activity's options menu and the navigation button will be wired through
the standard home menu select action.

In order to use a Toolbar within the Activity's window content the application
must not request the window feature
FEATURE_SUPPORT_ACTION_BAR.

Parameters

toolbar

Toolbar: Toolbar to set as the Activity's action bar, or null to clear it

supportInvalidateOptionsMenu

Invalidate the activity's options menu. This will cause relevant presentations
of the menu to fully update via calls to onCreateOptionsMenu and
onPrepareOptionsMenu the next time the menu is requested.

supportNavigateUpTo

Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity
in the process. upIntent will have the flag FLAG_ACTIVITY_CLEAR_TOP set
by this method, along with any others required for proper up navigation as outlined
in the Android Design Guide.

supportShouldUpRecreateTask

Returns true if sourceActivity should recreate the task when navigating 'up'
by using targetIntent.

If this method returns false the app can trivially call
supportNavigateUpTo(android.content.Intent) using the same parameters to correctly perform
up navigation. If this method returns false, the app should synthesize a new task stack
by using TaskStackBuilder or another similar mechanism to perform up navigation.

Parameters

targetIntent

Intent: An intent representing the target destination for up navigation

Returns

boolean

true if navigating up should recreate a new task stack, false if the same task
should be used for the destination