Top "Fragmentmanager" questions

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

Where to call getChildFragmentManager()?

Problem According to the Google's docs: You can now embed fragments inside fragments. This is useful for a variety of …

android android-fragments android-viewpager fragmentmanager android-nested-fragment
Proper use of sub sub fragments with (Child)FragmentManager

How do I properly use Fragments in Fragments? My (simplified) use case is following, I have an activity with a …

android fragment fragmentmanager
Fragment must be a public static class to be properly recreated from instance state

After updating to the latest support repository, compile 'com.android.support:appcompat-v7:24.2.0' compile 'com.android.support:design:24.2.0' compile …

android android-fragments android-support-library android-dialogfragment fragmentmanager
onAttach() not called in Fragment

My Fragment doesn't call onAttach(context) method when it launched from AppCompatActivity. Fragment creating in XML: <fragment android:id="@+…

android android-fragments android-activity android-support-library fragmentmanager
Checking if state is saved before committing a FragmentTransaction

I sometimes see the following stacktrace for a commit that can happen when the user isn't looking at the activity (…

android android-fragments fragmentmanager android-savedstate onsaveinstancestate
Android adding Fragment inside Fragment

Hi there (and thanks in advance), I have an application with a Google Play Store-like layout (using PagerTabStrip with 5 sub …

android android-fragments android-nested-fragment fragmentmanager
Passing data back to previous fragment from current fragment

I am Using Navigation Drawer in my app. I have one MainActivity and rest of are Fragments. So the issue …

android android-fragments fragment fragmentmanager
how to open different activities on clicking the items on navigation drawer?

I just start a new app and in beginning I select the navigation drawer option the eclipse IDE gives me …

android android-fragments navigation-drawer onitemclicklistener fragmentmanager
getBackStackEntryCount() always returns 0 even after adding addToBackStack and executePendingTransactions()

I have two activities A and B. Activity A has a mapFragment and I am adding it to backstack. When …

android fragmentmanager
Get Fragment instance in Activity

I have added Fragment to Activity like getSupportFragmentManager().beginTransaction() .add(R.id.container,new MyFragment).commit(); where container is the …

android android-fragments interface fragmentmanager android-framelayout