diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-17 17:16:02 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-01-17 17:16:02 -0800 |
commit | 17b9b81418c9166e181a992f27598e4de18d7203 (patch) | |
tree | f2232040962f4aadc8f4bca90eca144f684074ce /docs | |
parent | 80ad0b0aeb5a55d2e62aaaf18863253501b87b60 (diff) | |
download | frameworks_base-17b9b81418c9166e181a992f27598e4de18d7203.zip frameworks_base-17b9b81418c9166e181a992f27598e4de18d7203.tar.gz frameworks_base-17b9b81418c9166e181a992f27598e4de18d7203.tar.bz2 |
Remove old APIs.
Change-Id: If676e4e7886ad71c4959d4253db99639b49218b8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/guide/topics/fundamentals/fragments.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/guide/topics/fundamentals/fragments.jd b/docs/html/guide/topics/fundamentals/fragments.jd index 045a1e8..0972805 100644 --- a/docs/html/guide/topics/fundamentals/fragments.jd +++ b/docs/html/guide/topics/fundamentals/fragments.jd @@ -319,7 +319,7 @@ of {@link android.app.FragmentTransaction} from your {@link android.app.Activity <pre> FragmentManager fragmentManager = {@link android.app.Activity#getFragmentManager()} -FragmentTransaction fragmentTransaction = fragmentManager.{@link android.app.FragmentManager#openTransaction()}; +FragmentTransaction fragmentTransaction = fragmentManager.{@link android.app.FragmentManager#beginTransaction()}; </pre> <p>You can then add a fragment using the {@link @@ -406,7 +406,7 @@ android.app.FragmentManager} like this:</p> <pre> FragmentManager fragmentManager = {@link android.app.Activity#getFragmentManager()}; -FragmentTransaction fragmentTransaction = fragmentManager.{@link android.app.FragmentManager#openTransaction()}; +FragmentTransaction fragmentTransaction = fragmentManager.{@link android.app.FragmentManager#beginTransaction()}; </pre> <p>Each transaction is a set of changes that you want to perform at the same time. You can set @@ -428,7 +428,7 @@ state in the back stack:</p> <pre> // Create new fragment and transaction Fragment newFragment = new ExampleFragment(); -FragmentTransaction transaction = getFragmentManager().openTransaction(); +FragmentTransaction transaction = getFragmentManager().beginTransaction(); // Replace whatever is in the fragment_container view with this fragment, // and add the transaction to the back stack |