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.
More Related Contents:
- How to put Google Maps V2 on a Fragment using ViewPager
- Receive result from DialogFragment
- MapView in a Fragment (Honeycomb)
- Failed to load map. Error contacting Google servers. This is probably an authentication issue
- Initialize MapFragment programmatically with Maps API v2
- android.content.Context.getPackageName()’ on a null object reference
- Android: Can you nest Fragments?
- reusing fragments in a fragmentpageradapter
- how to set google map fragment inside scroll view
- Fragment-Fragment communication in Android
- Fragment already added IllegalStateException
- Android – save/restore fragment state
- Google Maps Fragment returning null inside a fragment
- Add Google Maps API V2 in a fragment
- SupportMapFragment does not support AndroidX Fragment
- Custom attributes in Android fragments
- Integrating youtube to fragment
- This app won’t run unless you update Google Play Services (via Bazaar)
- Dilemma: when to use Fragments vs Activities:
- Refresh Fragment at reload
- Android Fragment onAttach() deprecated
- FragmentContainerView using findNavController
- ViewPager with Google Maps API v2: mysterious black view
- How to wrap the height of a ViewPager to the height of its current Fragment?
- Remove old Fragment from fragment manager
- Map Markers with text in Google Maps Android API v2
- Android – How to change fragments in the Navigation Drawer
- Coordinator Layout with Toolbar in Fragments or Activity
- Use external application fragment/activity inside application
- OnCreateView called multiple times / Working with ActionBar and Fragments