Inside a Fragment
subclass you have to use getFragmentManager
in place of getSupportFragmentManager
. You will get the support one if the import are from the support library.
Related Contents:
- Receive result from DialogFragment
- How to put Google Maps V2 on a Fragment using ViewPager
- android.content.Context.getPackageName()’ on a null object reference
- MapView in a Fragment (Honeycomb)
- How to access parent Activity View in Fragment
- Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError
- reusing fragments in a fragmentpageradapter
- Get the Application Context In Fragment In Android?
- Fragment already added IllegalStateException
- Android – save/restore fragment state
- Initialize MapFragment programmatically with Maps API v2
- what is the different between onCreate() and onCreateView() lifecycle methods in Fragment?
- how to set google map fragment inside scroll view
- How to set Unit Test to Fragment in Android
- How to inflate view inside fragment
- Hooking into fragment’s lifecycle like Application.ActivityLifecycleCallbacks
- Fragment not receiving menu callbacks
- Android Fragment onAttach() deprecated
- Get the current fragment object
- How to pass a variable from Activity to Fragment, and pass it back?
- java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
- Update data in ListFragment as part of ViewPager
- Google Maps API v2: How to make markers clickable?
- FragmentPagerAdapter getItem is not called
- How to close the current fragment by using Button like the back button?
- What is the meaning of addToBackStack with null parameter?
- Where/How to getIntent().getExtras() in an Android Fragment? [duplicate]
- End animation event android
- This app won’t run unless you update Google Play Services (via Bazaar)
- Create a link that opens the appropriate map app on any device, with directions to destination
- getLastKnownLocation returns null
- FragmentContainerView as NavHostFragment
- Android Fragments. Retaining an AsyncTask during screen rotation or configuration change
- Show DialogFragment from onActivityResult
- Android Compatibility Package doesn’t include Activity.getFragmentManager()
- Get SHA1 fingerprint certificate in Android Studio for Google Maps
- FragmentContainerView using findNavController
- ViewPager as a circular queue / wrapping
- findFragmentById always returns null
- How to add a Fragment inside a ViewPager using Nested Fragment (Android 4.2)
- Display fragment viewpager within a fragment
- Animating fragments and the back stack
- Couldn’t get connection factory client
- getLayoutInflater() in fragment
- OnCreateView called multiple times / Working with ActionBar and Fragments
- Is there a way to get fragment from top of stack?
- How do you create Preference Activity and Preference Fragment on Android?
- How to get the current location in Google Maps Android API v2?
- How to know when a Lottie animation is completed?
- Can you use a LoaderManager from a Service?