# Understanding Fragment Transactions and Back Navigation

DevFeed: [Understanding Fragment Transactions and Back Navigation](<https://devfeed.tech/articles/the-curious-case-of-haunting-fragments-28663.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2017/12/18/fragmentback/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2017-12-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Transactions](<https://devfeed.tech/topics/transactions.md>), [navigation](<https://devfeed.tech/topics/navigation.md>), [App](<https://devfeed.tech/topics/app.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [events](<https://devfeed.tech/tags/events.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [fragments](<https://devfeed.tech/tags/fragments.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [login](<https://devfeed.tech/tags/login.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [screen](<https://devfeed.tech/tags/screen.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

## AI overview

This tutorial investigates unexpected Android Fragment behavior when login-related Fragment transactions interact with back navigation. It explains that the transaction manager saves executed transactions rather than the Fragments themselves, which can leave multiple Fragments visible after navigating back.

## Source excerpt

Do Fragment transactions and back navigation have no more secrets for you? Well then you should try to solve the mystery in this post, where a Fragment (literally) came to haunt us...