Android Guides | Samples

Android.App.FragmentManager.BeginTransaction Method

Start a series of edit operations on the Fragments associated with this FragmentManager.

Syntax

[Android.Runtime.Register("beginTransaction", "()Landroid/app/FragmentTransaction;", "GetBeginTransactionHandler")]
public abstract FragmentTransaction BeginTransaction ()

Remarks

Start a series of edit operations on the Fragments associated with this FragmentManager.

Note: A fragment transaction can only be created/committed prior to an activity saving its state. If you try to commit a transaction after Activity.OnSaveInstanceState(Bundle) (and prior to a following Activity.OnStart or Activity.OnResume, you will get an error. This is because the framework takes care of saving your current fragments in the state, and if changes are made after the state is saved then they will be lost.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11