Lines Matching refs:transaction

62 fragment transaction, you can also add it to a back stack that's managed by the
63 activity—each back stack entry in the activity is a record of the fragment transaction that
64 occurred. The back stack allows the user to reverse a fragment transaction (navigate backwards),
403 commit to the activity is called a transaction and you can perform one using APIs in {@link
404 android.app.FragmentTransaction}. You can also save each transaction to a back stack managed by the
416 <p>Each transaction is a set of changes that you want to perform at the same time. You can set
417 up all the changes you want to perform for a given transaction using methods such as {@link
419 and {@link android.app.FragmentTransaction#replace replace()}. Then, to apply the transaction
425 android.app.FragmentTransaction#addToBackStack addToBackStack()}, in order to add the transaction
433 // Create new fragment and transaction
435 FragmentTransaction transaction = getFragmentManager().beginTransaction();
438 // and add the transaction to the back stack
439 transaction.replace(R.id.fragment_container, newFragment);
440 transaction.addToBackStack(null);
442 // Commit the transaction
443 transaction.commit();
448 android.app.FragmentTransaction#addToBackStack addToBackStack()}, the replace transaction is
449 saved to the back stack so the user can reverse the transaction and bring back the
452 <p>If you add multiple changes to the transaction (such as another {@link
457 back stack as a single transaction and the <em>Back</em> button will reverse them all together.</p>
468 addToBackStack()} when you perform a transaction that removes a fragment, then that fragment is
469 destroyed when the transaction is committed and the user cannot navigate back to it. Whereas, if you
474 <p class="note"><strong>Tip:</strong> For each fragment transaction, you can apply a transition
478 <p>Calling {@link android.app.FragmentTransaction#commit()} does not perform the transaction
483 usually not necessary unless the transaction is a dependency for jobs in other threads.</p>
485 <p class="caution"><strong>Caution:</strong> You can commit a transaction using {@link
688 android.app.FragmentTransaction#addToBackStack(String) addToBackStack()} during a transaction that