It seems like there are two options when you want to show the user a new screen:
- Start a new activity (i.e.
startActivity(Intent)
) - Swap fragments (i.e.
FragmentTransaction
)
What is the difference? Which one should be used?
Example
I want the user to be able to navigate between 3 screens. Each one is in a fragment. I can use ...
- 3 single-fragment activities.
- 1 activity, which dynamically switches fragments.