16.8k views
2 votes
From a fragment or activity, you can call the ________________ method to get a FragmentManager object that you can use to find and work with the fragments in your app.

User Balaj Khan
by
8.4k points

1 Answer

5 votes

Final answer:

To get a FragmentManager object in an app, you need to call the getSupportFragmentManager method from a fragment or activity. This allows for managing UI fragments and handling dynamic interactions within the app's interface.

Step-by-step explanation:

From a fragment or activity, you can call the getSupportFragmentManager method to get a FragmentManager object that you can use to find and work with the fragments in your app.

The FragmentManager is a crucial component in Android development that allows for dynamic addition, removal, and interaction with the fragments that make up the UI of your application. By using the getSupportFragmentManager, you gain access to methods that manage your fragment transactions, ensuring a flexible and responsive app design.

User Angel Guillen
by
7.7k points