# FragmentManager.BackStackEntry

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1  

# FragmentManager.BackStackEntry

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


interface
FragmentManager.BackStackEntry
`  
`


`

|-------------------------------------------------------|
| android.support.v4.app.FragmentManager.BackStackEntry |

<br />

*** ** * ** ***

Representation of an entry on the fragment back stack, as created with[FragmentTransaction.addToBackStack()](https://developer.android.com/reference/android/support/v4/app/FragmentTransaction#addToBackStack(java.lang.String)). Entries can later be retrieved with[FragmentManager.getBackStackEntryAt()](https://developer.android.com/reference/android/support/v4/app/FragmentManager#getBackStackEntryAt(int)).

Note that you should never hold on to a BackStackEntry object; the identifier as returned by[getId()](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getId())is the only thing that will be persisted across activity instances.

## Summary

|                                                                                                                                                                                ### Public methods                                                                                                                                                                                ||
|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract CharSequence` | ` `[getBreadCrumbShortTitle](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getBreadCrumbShortTitle())`() ` Return the short bread crumb title for the entry, or null if it does not have one.                                                                                                          |
| ` abstract int`          | ` `[getBreadCrumbShortTitleRes](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getBreadCrumbShortTitleRes())`() ` Return the short bread crumb title resource identifier for the entry, or 0 if it does not have one.                                                                                   |
| ` abstract CharSequence` | ` `[getBreadCrumbTitle](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getBreadCrumbTitle())`() ` Return the full bread crumb title for the entry, or null if it does not have one.                                                                                                                     |
| ` abstract int`          | ` `[getBreadCrumbTitleRes](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getBreadCrumbTitleRes())`() ` Return the full bread crumb title resource identifier for the entry, or 0 if it does not have one.                                                                                              |
| ` abstract int`          | ` `[getId](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getId())`() ` Return the unique identifier for the entry.                                                                                                                                                                                     |
| ` abstract String`       | ` `[getName](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry#getName())`() ` Get the name that was supplied to[FragmentTransaction.addToBackStack(String)](https://developer.android.com/reference/android/support/v4/app/FragmentTransaction#addToBackStack(java.lang.String))when creating this entry. |

## Public methods

### getBreadCrumbShortTitle

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CharSequence getBreadCrumbShortTitle ()
```

Return the short bread crumb title for the entry, or null if it does not have one.

<br />

|        Returns         ||
|----------------|--------|
| `CharSequence` | <br /> |

### getBreadCrumbShortTitleRes

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getBreadCrumbShortTitleRes ()
```

Return the short bread crumb title resource identifier for the entry, or 0 if it does not have one.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getBreadCrumbTitle

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CharSequence getBreadCrumbTitle ()
```

Return the full bread crumb title for the entry, or null if it does not have one.

<br />

|        Returns         ||
|----------------|--------|
| `CharSequence` | <br /> |

### getBreadCrumbTitleRes

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getBreadCrumbTitleRes ()
```

Return the full bread crumb title resource identifier for the entry, or 0 if it does not have one.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getId

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getId ()
```

Return the unique identifier for the entry. This is the only representation of the entry that will persist across activity instances.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getName

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getName ()
```

Get the name that was supplied to[FragmentTransaction.addToBackStack(String)](https://developer.android.com/reference/android/support/v4/app/FragmentTransaction#addToBackStack(java.lang.String))when creating this entry.

<br />

|     Returns      ||
|----------|--------|
| `String` | <br /> |

-

  ## Annotations

  - [NotificationCompat.Action.SemanticAction](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.SemanticAction)
-

  ## Interfaces

  - [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.Delegate)
  - [ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.DelegateProvider)
  - [ActivityCompat.OnRequestPermissionsResultCallback](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback)
  - [ActivityCompat.PermissionCompatDelegate](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.PermissionCompatDelegate)
  - [FragmentManager.BackStackEntry](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry)
  - [FragmentManager.OnBackStackChangedListener](https://developer.android.com/reference/android/support/v4/app/FragmentManager.OnBackStackChangedListener)
  - [LoaderManager.LoaderCallbacks](https://developer.android.com/reference/android/support/v4/app/LoaderManager.LoaderCallbacks)
  - [NotificationCompat.Action.Extender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Extender)
  - [NotificationCompat.Extender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Extender)
  - [SharedElementCallback.OnSharedElementsReadyListener](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback.OnSharedElementsReadyListener)
  - [TaskStackBuilder.SupportParentable](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.SupportParentable)
-

  ## Classes

  - [ActionBarDrawerToggle](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle)
  - [ActivityCompat](https://developer.android.com/reference/android/support/v4/app/ActivityCompat)
  - [ActivityManagerCompat](https://developer.android.com/reference/android/support/v4/app/ActivityManagerCompat)
  - [ActivityOptionsCompat](https://developer.android.com/reference/android/support/v4/app/ActivityOptionsCompat)
  - [AlarmManagerCompat](https://developer.android.com/reference/android/support/v4/app/AlarmManagerCompat)
  - [AppLaunchChecker](https://developer.android.com/reference/android/support/v4/app/AppLaunchChecker)
  - [AppOpsManagerCompat](https://developer.android.com/reference/android/support/v4/app/AppOpsManagerCompat)
  - [BundleCompat](https://developer.android.com/reference/android/support/v4/app/BundleCompat)
  - [DialogFragment](https://developer.android.com/reference/android/support/v4/app/DialogFragment)
  - [Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)
  - [Fragment.SavedState](https://developer.android.com/reference/android/support/v4/app/Fragment.SavedState)
  - [FragmentActivity](https://developer.android.com/reference/android/support/v4/app/FragmentActivity)
  - [FragmentContainer](https://developer.android.com/reference/android/support/v4/app/FragmentContainer)
  - [FragmentController](https://developer.android.com/reference/android/support/v4/app/FragmentController)
  - [FragmentHostCallback](https://developer.android.com/reference/android/support/v4/app/FragmentHostCallback)
  - [FragmentManager](https://developer.android.com/reference/android/support/v4/app/FragmentManager)
  - [FragmentManager.FragmentLifecycleCallbacks](https://developer.android.com/reference/android/support/v4/app/FragmentManager.FragmentLifecycleCallbacks)
  - [FragmentManagerNonConfig](https://developer.android.com/reference/android/support/v4/app/FragmentManagerNonConfig)
  - [FragmentPagerAdapter](https://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter)
  - [FragmentStatePagerAdapter](https://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter)
  - [FragmentTabHost](https://developer.android.com/reference/android/support/v4/app/FragmentTabHost)
  - [FragmentTransaction](https://developer.android.com/reference/android/support/v4/app/FragmentTransaction)
  - [FrameMetricsAggregator](https://developer.android.com/reference/android/support/v4/app/FrameMetricsAggregator)
  - [JobIntentService](https://developer.android.com/reference/android/support/v4/app/JobIntentService)
  - [ListFragment](https://developer.android.com/reference/android/support/v4/app/ListFragment)
  - [LoaderManager](https://developer.android.com/reference/android/support/v4/app/LoaderManager)
  - [NavUtils](https://developer.android.com/reference/android/support/v4/app/NavUtils)
  - [NotificationCompat](https://developer.android.com/reference/android/support/v4/app/NotificationCompat)
  - [NotificationCompat.Action](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action)
  - [NotificationCompat.Action.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder)
  - [NotificationCompat.Action.WearableExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender)
  - [NotificationCompat.BigPictureStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigPictureStyle)
  - [NotificationCompat.BigTextStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigTextStyle)
  - [NotificationCompat.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder)
  - [NotificationCompat.CarExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender)
  - [NotificationCompat.CarExtender.UnreadConversation](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender.UnreadConversation)
  - [NotificationCompat.CarExtender.UnreadConversation.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender.UnreadConversation.Builder)
  - [NotificationCompat.DecoratedCustomViewStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.DecoratedCustomViewStyle)
  - [NotificationCompat.InboxStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle)
  - [NotificationCompat.MessagingStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.MessagingStyle)
  - [NotificationCompat.MessagingStyle.Message](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.MessagingStyle.Message)
  - [NotificationCompat.Style](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Style)
  - [NotificationCompat.WearableExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender)
  - [NotificationCompatExtras](https://developer.android.com/reference/android/support/v4/app/NotificationCompatExtras)
  - [NotificationCompatSideChannelService](https://developer.android.com/reference/android/support/v4/app/NotificationCompatSideChannelService)
  - [NotificationManagerCompat](https://developer.android.com/reference/android/support/v4/app/NotificationManagerCompat)
  - [RemoteInput](https://developer.android.com/reference/android/support/v4/app/RemoteInput)
  - [RemoteInput.Builder](https://developer.android.com/reference/android/support/v4/app/RemoteInput.Builder)
  - [ServiceCompat](https://developer.android.com/reference/android/support/v4/app/ServiceCompat)
  - [ShareCompat](https://developer.android.com/reference/android/support/v4/app/ShareCompat)
  - [ShareCompat.IntentBuilder](https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentBuilder)
  - [ShareCompat.IntentReader](https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentReader)
  - [SharedElementCallback](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback)
  - [TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)
-

  ## Exceptions

  - [Fragment.InstantiationException](https://developer.android.com/reference/android/support/v4/app/Fragment.InstantiationException)