Constants

EXTRA_BURN_IN_PROTECTION

Property in bundle passed to AmbientCallback#onEnterAmbient(Bundle) to indicate
whether burn-in protection is required. When this property is set to true, views must be
shifted around periodically in ambient mode. To ensure that content isn't shifted off
the screen, avoid placing content within 10 pixels of the edge of the screen. Activities
should also avoid solid white areas to prevent pixel burn-in. Both of these requirements
only apply in ambient mode, and only when this property is set to true.

EXTRA_LOWBIT_AMBIENT

Property in bundle passed to AmbientCallback#onEnterAmbient(Bundle) to indicate
whether the device has low-bit ambient mode. When this property is set to true, the screen
supports fewer bits for each color in ambient mode. In this case, activities should disable
anti-aliasing in ambient mode.

onCreate

Note that this can be called while the fragment's activity is
still in the process of being created. As such, you can not rely
on things like the activity's content view hierarchy being initialized
at this point. If you want to do work once the activity itself is
created, see onActivityCreated(Bundle).

Any restored child fragments will be created before the base
Fragment.onCreate method returns.

Parameters

savedInstanceState

Bundle: If the fragment is being re-created from
a previous saved state, this is the state.

onDestroy

void onDestroy ()

Called when the fragment is no longer in use. This is called
after onStop() and before onDetach().

onDetach

void onDetach ()

Called when the fragment is no longer attached to its activity. This
is called after onDestroy().

onPause

void onPause ()

Called when the Fragment is no longer resumed. This is generally
tied to Activity.onPause of the containing
Activity's lifecycle.

onResume

void onResume ()

Called when the fragment is visible to the user and actively running.
This is generally
tied to Activity.onResume of the containing
Activity's lifecycle.

onStop

void onStop ()

Called when the Fragment is no longer started. This is generally
tied to Activity.onStop of the containing
Activity's lifecycle.