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

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

Fragment getArguments examples from Open Source projects
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: 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, onSaveInstanceState
128:	outState.putAll(getArguments() != null ? getArguments() : new Bundle()); 
129:	super.onSaveInstanceState(outState); 
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: getArguments, getFragmentManager, isAdded
95:	if (isAdded()) getFragmentManager().beginTransaction().remove(this).commit(); 
-
145:	return getArguments().getInt("index", 0); 
Full Snippet Info
6
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: getArguments
47:	Bundle args = getArguments(); 
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, 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: 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: getActivity, getArguments, onActivityCreated
61:	super.onActivityCreated(savedInstanceState); 
62:	mFeedObserver = new ContentObserver(new Handler(getActivity().getMainLooper())) { 
-
68:	mFeedUri = getArguments().getParcelable(ARG_FEED_URI); 
69:	ContentResolver resolver = getActivity().getContentResolver(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArguments
120:	outState.putAll(getArguments() != null ? getArguments() : new Bundle()); 
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
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: getArguments, onAttach
64:	super.onAttach(activity); 
-
71:	mFeedUri = getArguments().getParcelable(ARG_FEED_URI); 
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
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
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
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, 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: 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, 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: getActivity, getArguments, onStart
25:	super.onStart(); 
-
31:	Bundle args = getArguments(); 
-
41:	PackageManager pm = getActivity().getPackageManager(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getActivity, getArguments, onResume
30:	super.onResume(); 
-
32:	int weekday = this.getArguments().getInt(ARG_SECTION_NUMBER); 
-
34:	database = new Schedule(this.getActivity(), weekday); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getActivity, getArguments, getImageResource
154:	ImageView iv = new ImageView(getActivity()); 
155:	iv.setImageResource(getImageResource(getArguments().getInt(ARG_SECTION_NUMBER))); 
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: 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: getArguments, onDetach
99:	Log.d(TAG, "Detached " + getArguments().getInt("position")); 
100:	super.onDetach(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onCreate, setHasOptionsMenu
115:	super.onCreate(savedInstanceState); 
-
123:	final Intent intent = BaseActivity.fragmentArgumentsToIntent(getArguments()); 
-
133:	setHasOptionsMenu(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getArguments, onStart
71:	super.onStart(); 
-
81:	Bundle args = getArguments(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getArguments, onStart
57:	super.onStart(); 
58:	Bundle inState = getArguments(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getArguments, onStart
98:	super.onStart(); 
99:	Bundle args = getArguments(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getArguments, onStart
33:	super.onStart(); 
-
39:	Bundle args = getArguments(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onStart
31:	super.onStart(); 
-
37:	Bundle args = getArguments(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onStart
35:	super.onStart(); 
36:	Bundle args = getArguments(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArguments, onSaveInstanceState
97:	outState.putAll(getArguments()); 
98:	super.onSaveInstanceState(outState); 
Full Snippet Info
4
CodeRank
Related Fragment getArguments Questions & Answers:
getArguments Method Overview
Return the arguments supplied when the fragment was instantiated, if any.
See Also