Top "Fragmenttransaction" questions

FragmentTransaction is an API for performing a set of Fragment operations.

IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager

I'm getting user reports from my app in the market, delivering the following exception: java.lang.IllegalStateException: Can not perform …

android android-fragments android-viewpager illegalstateexception fragmenttransaction
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
java.lang.IllegalArgumentException: No view found for id 0x1020002 (android:id/content) for fragment

I am trying to move from one fragment to another.. It shows following error during fragment transaction- java.lang.IllegalArgumentException: …

android fragmenttransaction
Fragment lifecycle - which method is called upon show / hide?

I am using the following method to switch between Fragments (in my NavigationDrawer) by showing / hiding them. protected void showFragment(…

android android-fragments lifecycle fragmenttransaction
Android FragmentTransaction.addToBackStack confusion

I was studying Fragments and got little confused on differentiating FragmentTransaction.replace(id, fragment, tag) and FragmentTransaction.addToBackStack(tag) calls. …

android android-fragments fragmenttransaction
Android FragmentTransaction commit already called

My ERROR : java.lang.IllegalStateException: commit already called My CODE: final FragmentTransaction fragmentTransaction =getFragmentManager().beginTransaction(); f1_fragment = new F1_Fragments(); …

android android-fragments fragmenttransaction
findFragmentByTag() returns null after perform a FragmentTransaction using replace() method

My Android app consists three fragments: A, B and C. They're loaded in the two containers defined in the MainActivity …

android android-fragments fragmenttransaction
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 replace fragment C with fragment A when back button is pressed?

My scenario : Activity 1 consists of Fragments A-> B-> C. All the fragments are added using this code : FragmentManager …

android android-fragments back-stack fragmenttransaction
When to use the attach and detach methods of FragmentTransaction

I just went through the documentation of the attach() and detach() methods of FragmentTransaction: attach(): Re-attach a fragment after it …

android fragment fragmenttransaction