# FragmentManager.BackStackEntry

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# FragmentManager.BackStackEntry

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/FragmentManager.BackStackEntry "View this page in Kotlin")\|Java

`
public
static


interface
FragmentManager.BackStackEntry
`  
`


`

|--------------------------------------------|
| android.app.FragmentManager.BackStackEntry |

<br />

*** ** * ** ***

<br />

**This interface was deprecated in API level 28.**   
Use the[Support Library](https://developer.android.com/tools/extras/support-library)[FragmentManager.BackStackEntry](https://developer.android.com/reference/androidx/fragment/app/FragmentManager.BackStackEntry.html)

Representation of an entry on the fragment back stack, as created with[FragmentTransaction.addToBackStack()](https://developer.android.com/reference/android/app/FragmentTransaction#addToBackStack(java.lang.String)). Entries can later be retrieved with[FragmentManager.getBackStackEntryAt()](https://developer.android.com/reference/android/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/app/FragmentManager.BackStackEntry#getId())is the only thing that will be persisted across activity instances.

## Summary

|                                                                                                                                                                                                      ### Public methods                                                                                                                                                                                                      ||
|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | ` `[getBreadCrumbShortTitle](https://developer.android.com/reference/android/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/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](https://developer.android.com/reference/java/lang/CharSequence) | ` `[getBreadCrumbTitle](https://developer.android.com/reference/android/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/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/app/FragmentManager.BackStackEntry#getId())`() ` Return the unique identifier for the entry.                                                                                                                                                                          |
| ` abstract `[String](https://developer.android.com/reference/java/lang/String)             | ` `[getName](https://developer.android.com/reference/android/app/FragmentManager.BackStackEntry#getName())`() ` Get the name that was supplied to[FragmentTransaction.addToBackStack(String)](https://developer.android.com/reference/android/app/FragmentTransaction#addToBackStack(java.lang.String))when creating this entry. |

## Public methods

### getBreadCrumbShortTitle

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract CharSequence getBreadCrumbShortTitle ()
```

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

<br />

|                                        Returns                                         ||
|--------------------------------------------------------------------------------|--------|
| [CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | <br /> |

### getBreadCrumbShortTitleRes

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract 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[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract CharSequence getBreadCrumbTitle ()
```

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

<br />

|                                        Returns                                         ||
|--------------------------------------------------------------------------------|--------|
| [CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | <br /> |

### getBreadCrumbTitleRes

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract 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[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract 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[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract String getName ()
```

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

<br />

|                                  Returns                                   ||
|--------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String) | <br /> |