What is addToBackStack in Fragment

getSupportFragmentManager()
.beginTransaction()
.add(R.id.fragmentContainer, fragment, "TAG")
.commit();
getSupportFragmentManager()
.beginTransaction()
.add(R.id.fragmentContainer, fragment, "TAG")
.addToBackStack("TAG")
.commit();
Putting up content takes a lot of time and effort 😓.
👏 clap 👏 If you think you learned something from this article.You can find me on Stackoverflow,Github,and,on Linkedin.
Give feedback and feel free to correct mistakes.

Read More:

--

--

--

Android Developer | Arizona State University | NASA Psyche Research Aide

Love podcasts or audiobooks? Learn on the go with our new app.

Deep Links, Universal Links, and the SwiftUI App Life Cycle

Countdown to 2 Days, BitCherry 2nd Anniversary Festival is Coming

Is everything connected?

iOS 15+ | Automation Running iPhone Device

SwiftUI: How to make Collapsible List?

SwiftUI: How to make custom Swipe-able Cell

How to Create and Animate Checkboxes in SwiftUI

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rohit Singh

Rohit Singh

Android Developer | Arizona State University | NASA Psyche Research Aide

More from Medium

ExoPlayer playlist diffing

Motion Editor: A new approach for ConstraintSet derived lines level determination

Approximate vs Precise location update frequencies

What’s the tricky part of Gson?