Best code examples for Fragment onCreate method (android.app.Fragment.onCreate)

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

Fragment onCreate examples from Open Source projects
This code example shows how to use the following methods: onCreate
23:	super.onCreate(savedInstanceState); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
109:	super.onCreate(savedInstanceState); 
110:	mNum = getArguments() != null ? getArguments().getInt("num") : 1; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
106:	super.onCreate(savedInstanceState); 
107:	mNum = getArguments() != null ? getArguments().getInt("num") : 1; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: onCreate, setRetainInstance
30:	super.onCreate(savedInstanceState); 
31:	setRetainInstance(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: onCreate
51:	super.onCreate(savedInstanceState); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
68:	super.onCreate(savedInstanceState); 
69:	mImageUrl = getArguments() != null ? getArguments().getString(IMAGE_DATA_EXTRA) : null; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getActivity, getArguments, onCreate
47:	super.onCreate(savedInstanceState); 
-
49:	if (getArguments().containsKey(ARG_ITEM_ID)) { 
-
51:	mItem = DatabaseHandler.getInstance(getActivity()).getPerson(getArguments().getLong(ARG_ITEM_ID)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate, setRetainInstance
41:	super.onCreate(savedInstanceState); 
42:	setRetainInstance(true); 
43:	Bundle b = getArguments(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
110:	super.onCreate(savedInstanceState); 
111:	mNum = getArguments() != null ? getArguments().getInt("num") : 1; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getActivity, getArguments, onCreate
47:	super.onCreate(savedInstanceState); 
-
49:	if (getArguments().containsKey(ARG_ITEM_ID)) { 
-
51:	mItem = DatabaseHandler.getInstance(getActivity()).getPersonItem(getArguments().getLong(ARG_ITEM_ID)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
110:	super.onCreate(savedInstanceState); 
111:	mNum = getArguments() != null ? getArguments().getInt("num") : 1; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: onCreate
149:	super.onCreate(savedInstanceState); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: onCreate
41:	super.onCreate(savedInstanceState); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
109:	super.onCreate(savedInstanceState); 
110:	mNum = getArguments() != null ? getArguments().getInt("num") : 1; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
104:	super.onCreate(savedInstanceState); 
105:	Bundle args = getArguments(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLoaderManager, onCreate
35:	super.onCreate(savedInstanceState); 
36:	getLoaderManager().initLoader(0, null, this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate
17:	super.onCreate(savedInstanceState); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: onCreate, setRetainInstance
35:	super.onCreate(savedInstanceState); 
36:	setRetainInstance(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: onCreate, setHasOptionsMenu
128:	super.onCreate(savedInstanceState); 
129:	setHasOptionsMenu(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
78:	super.onCreate(bundle); 
79:	mCardText = getArguments().getCharSequence(EXTRA_CARD_TEXT); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getActivity, onCreate
10:	super.onCreate(savedInstanceState); 
11:	GraphRetriever.from(getActivity()).inject(this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate
14:	super.onCreate(savedInstanceState); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getActivity, getArguments, onCreate
45:	super.onCreate(savedInstanceState); 
-
51:	mLocalActivityManager = new LocalActivityManager(getActivity(), true); 
-
54:	Intent mapActivityIntent = new Intent(getActivity(), TandemActivitiesMapActivity.class); 
55:	Bundle mapActivityStartupBundle = this.getArguments(); 
-
61:	((TandemActivitiesActivityInterface)mLocalActivityManager.getActivity("mapActivity")).setContainingFragmentActivity(getActivity()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getActivity, onCreate
22:	super.onCreate(bundle); 
23:	Activity activity = getActivity(); 
-
25:	mTaskExecutor = ((TaskActivity) getActivity()).mTaskExecutor; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate
20:	super.onCreate(savedInstanceState); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
44:	super.onCreate(savedInstanceState); 
45:	Bundle args = getArguments(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate, setRetainInstance
37:	super.onCreate(savedInstanceState); 
38:	setRetainInstance(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate
95:	super.onCreate(bundle); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
106:	super.onCreate(savedInstanceState); 
107:	mNum = getArguments() != null ? getArguments().getInt("num") : 1; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
23:	super.onCreate(savedInstanceState); 
24:	Bundle args = getArguments(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate, setRetainInstance
15:	super.onCreate(savedInstanceState); 
16:	setRetainInstance(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onCreate, setHasOptionsMenu
33:	super.onCreate(savedInstanceState); 
34:	setHasOptionsMenu(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getActivity, onCreate, setHasOptionsMenu
61:	super.onCreate(savedInstanceState); 
62:	setHasOptionsMenu(true); 
63:	AnalyticsUtils.getInstance(getActivity()).trackPageView("/Map"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
56:	super.onCreate(savedInstanceState); 
-
58:	showId = getArguments().getInt("showId"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
38:	super.onCreate(savedInstanceState); 
-
47:	Bundle args = getArguments(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getActivity, getArguments, onCreate
27:	super.onCreate(paramBundle); 
28:	String str1 = getArguments().getString("com.instagram.android.fragment.SimpleWebViewFragment.ARGUMENT_URL"); 
-
30:	if (getArguments().getBoolean("com.instagram.android.fragment.SimpleWebViewFragment.ARGUMENT_LOAD_SAME_HOST")) 
-
32:	this.mWebView = new WebView(getActivity()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
38:	super.onCreate(savedInstanceState); 
-
40:	if (getArguments().containsKey(ARG_ITEM_ID)) { 
-
44:	mItem = DummyContent.ITEM_MAP.get(getArguments().getString( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
28:	super.onCreate(savedInstanceState); 
29:	id = this.getArguments().getInt("id"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
23:	super.onCreate(savedInstanceState); 
-
25:	final Bundle arguments = getArguments(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate, setHasOptionsMenu
77:	super.onCreate(savedInstanceState); 
-
79:	final Intent intent = BaseActivity.fragmentArgumentsToIntent(getArguments()); 
-
85:	setHasOptionsMenu(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
23:	super.onCreate(savedInstanceState); 
24:	if (getArguments().containsKey(ARG_ITEM_ID)) { 
25:	mItem = DummyContent.ITEM_MAP.get(getArguments().getString(ARG_ITEM_ID)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
140:	super.onCreate(savedInstanceState); 
-
142:	mTitle = getArguments().getString("title"); 
143:	mMessage = getArguments().getString("msg"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments, onCreate, setHasOptionsMenu
78:	super.onCreate(savedInstanceState); 
-
80:	final Intent intent = BaseActivity.fragmentArgumentsToIntent(getArguments()); 
-
86:	setHasOptionsMenu(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: onCreate, setHasOptionsMenu
130:	super.onCreate(savedInstanceState); 
131:	setHasOptionsMenu(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, getLoaderManager, onCreate
38:	super.onCreate(savedInstanceState); 
-
40:	Bundle args = getArguments(); 
-
43:	getLoaderManager().initLoader(0, null, this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onCreate
23:	super.onCreate(savedInstanceState); 
24:	if (getArguments().containsKey(ARG_ITEM_ID)) { 
25:	mItem = DummyContent.ITEM_MAP.get(getArguments().getString(ARG_ITEM_ID)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFragmentManager, getLoaderManager, onCreate
48:	super.onCreate(paramBundle); 
49:	searchTagsFragment.setLoaderManager(getLoaderManager()); 
50:	searchUsersFragment.setLoaderManager(getLoaderManager()); 
51:	searchTagsFragment.setFragmentManager(getFragmentManager()); 
52:	searchUsersFragment.setFragmentManager(getFragmentManager()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getActivity, onCreate, setHasOptionsMenu
41:	super.onCreate(savedInstanceState); 
-
43:	setHasOptionsMenu(true); 
-
47:	getActivity().setTitle(note.toString()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onCreate, setHasOptionsMenu
76:	super.onCreate(savedInstanceState); 
-
78:	final Intent intent = BaseActivity.fragmentArgumentsToIntent(getArguments()); 
-
84:	setHasOptionsMenu(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getChildFragmentManager, onCreate, setHasOptionsMenu
166:	super.onCreate(savedInstanceState); 
167:	setHasOptionsMenu(true); 
-
169:	FragmentManager fm = getChildFragmentManager(); 
Full Snippet Info
5
CodeRank
Related Fragment onCreate Questions & Answers:
onCreate Method Overview
Called to do initial creation of a fragment.
See Also