Best code examples for Android FragmentManager class (android.support.v4.app.FragmentManager)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android FragmentManager class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android FragmentManager examples from Open Source projects
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
60:	FragmentTransaction transaction = manager.beginTransaction(); 
61:	Fragment current = manager.findFragmentByTag(tag); 
-
67:	fragment.show(manager, tag); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: show, beginTransaction, findFragmentByTag
62:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
64:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
71:	.show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: show, beginTransaction, findFragmentByTag
94:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
96:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
103:	.show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: show, beginTransaction, findFragmentByTag
108:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
110:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
117:	.show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: show, beginTransaction, findFragmentByTag
119:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
121:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
129:	mNegativeButtonOnClickListener).show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
79:	mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 
-
86:	fm.beginTransaction().add(mWorkFragment, "work").commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
109:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
111:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
136:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
138:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentById
51:	if (fm.findFragmentById(android.R.id.content) == null) { 
-
53:	fm.beginTransaction().add(android.R.id.content, list).commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginTransaction, executePendingTransactions, findFragmentByTag
208:	SendTagsFragment sendTagsFragment = 
-
215:	fragmentManager.beginTransaction().add(sendTagsFragment, SEND_TAGS_STATUS_FRAGMENT_TAG).commit(); 
216:	fragmentManager.executePendingTransactions(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
81:	mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 
-
88:	fm.beginTransaction().add(mWorkFragment, "work").commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
15:	public class SherlockFragment extends Fragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
36:	Fragment messagesFragment = fm.findFragmentByTag(tag); 
-
38:	final FragmentTransaction ft = fm.beginTransaction(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentById
46:	if (fm.findFragmentById(android.R.id.content) == null) 
-
49:	fm.beginTransaction().add(android.R.id.content, list).commit(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setRetainInstance
20:	public ColorFragment(int colorRes) { 
-
22:	setRetainInstance(true); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class LoadingFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: getBackStackEntryCount
161:	for(int i = 0; i < fm.getBackStackEntryCount(); i ++) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginTransaction
30:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginTransaction, executePendingTransactions, findFragmentByTag, getBackStackEntryAt, getBackStackEntryCount
72:	int count = fm.getBackStackEntryCount(); 
-
74:	FragmentTransaction ft = fm.beginTransaction(); 
-
77:	fm.popBackStack(); 
78:	fm.executePendingTransactions(); 
-
80:	String name = fm.getBackStackEntryAt(count-2).getName(); 
81:	mCurrentFragment = fm.findFragmentByTag(name); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
55:	mFragment = fm.findFragmentByTag(mTag); 
-
57:	FragmentTransaction ft = fm.beginTransaction(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentById
25:	if (fm.findFragmentById(android.R.id.content) == null) { 
-
27:	fm.beginTransaction().add(android.R.id.content, list).commit(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setRetainInstance
33:	super(); 
-
36:	setRetainInstance(true); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
25:	public class FragmentTabs extends FragmentActivity implements LocationListener{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: beginTransaction
16:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
13:	public class FeedIntelligenceSelectorFragment extends Fragment implements StateChangedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: beginTransaction, findFragmentByTag
81:	mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 
-
88:	fm.beginTransaction().add(mWorkFragment, "work").commit(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
10:	public class TaskListActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
28:	public class OptionsMenuSupportFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class TestFragmentActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
13:	public class CustomFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
6:	public class DetailForm extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
24:	public class DetailsFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class Weather extends FragmentActivity 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	public class SherlockFragment extends Fragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
10:	public class CalculatorActivity extends FragmentActivity implements OperationListFragment.ItemEventListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
57:	public static class TestFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
16:	public class MockSlidingTabActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class BrewDetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class Controller extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	import android.view.ViewGroup; 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class FragmentStackActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class ServerActivity extends FragmentActivity{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
17:	public class BshFragment extends Fragment implements OnClickListener, 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class MainActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
20:	public class BshFragment extends Fragment implements OnClickListener, 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
16:	public class BaseActivity extends FragmentActivity implements WarningDialog.DialogListener{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
23:	public class DetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
Related Android FragmentManager Questions & Answers:
See Code Examples for Android FragmentManager Methods: