Top "Fragmentmanager" questions

FragmentManager is an interface for interacting with Fragment objects inside an Activity in Android.

How can I access getSupportFragmentManager() in a fragment?

I have a FragmentActivity and I want to use a map fragment within it. I'm having a problem getting the …

android android-fragments android-support-library android-fragmentactivity fragmentmanager
What does FragmentManager and FragmentTransaction exactly do?

I have simple code below FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); fragmentTransaction.replace(R.id.fragment_container, mFeedFragment); fragmentTransaction.…

android fragmenttransaction fragmentmanager fragment-backstack
Cannot resolve method 'show(android.support.v4.app.FragmentManager, java.lang.String)

For some reason when I try to show a Dialog I get an error from dialog.show(fm, DIALOG_DATE); …

java android dialog fragment fragmentmanager
How can I implement FragmentManager and FragmentTransaction to replace just a single fragment?

I have an activity with 3 fragments; a header; a body; a footer (same point as in HTML). The bodyfragment contains …

android fragment fragmenttransaction fragmentmanager
How to call fragment method from main activity

I have method in fragment class. I want to call that method from main activity but I don't want to …

java android android-fragments android-activity fragmentmanager
FragmentManager popBackStack doesn't remove fragment

I'm implementing menu navigation using Fragments. So I begin with Home, and then users can navigate to diferent sections and …

android android-fragments android-nested-fragment fragmentmanager
Android FragmentManager BackStackRecord.run throwing NullPointerException

I sometimes get the following exception when working with Fragments: FATAL EXCEPTION: main java.lang.NullPointerException at android.support.v4.…

java android android-fragments fragmentmanager
android.support.v4.app.FragmentManager OR android.app.FragmentManager?

I'm learning Android development. I get stuck at something that should be very easy. Im creating an App with one …

android android-fragments fragment fragmentmanager
FragmentPagerAdapter deprecated

Since API 27 FragmentPagerAdapter is deprecated. What's the best alternative to use for this? In my case, I understand something like …

android kotlin android-viewpager fragmentmanager fragmentpageradapter
How to set a Tag to a Fragment in Android

I've looked at all the questions on Stackoverflow but could not find a single definitive answer to this question. How …

android android-fragments fragmentmanager