Best code examples for Intent toUri method (android.content.Intent.toUri)

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

Intent toUri examples from Open Source projects
This code example shows how to use the following methods: getParcelableExtra, putExtra, resolveActivityInfo, toUri
108:	Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); 
-
110:	intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME)); 
111:	String appUri = intent.toUri(0); 
-
118:	ActivityInfo ai = intent.resolveActivityInfo(pm, PackageManager.GET_ACTIVITIES); 
-
128:	return friendlyName != null || labelOnly ? friendlyName : intent.toUri(0); 
-
138:	return name != null ? name : intent.toUri(0); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getStringExtra, resolveActivityInfo, toUri
154:	ActivityInfo ai = intent.resolveActivityInfo(pm, PackageManager.GET_ACTIVITIES); 
-
164:	return friendlyName != null || labelOnly ? friendlyName : intent.toUri(0); 
-
169:	String name = intent.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); 
-
174:	return name != null ? name : intent.toUri(0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addFlags, setPackage, toUri
167:	Intent intent = new Intent(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA); 
168:	intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
169:	intent.setPackage(getEngineName()); 
-
171:	Log.v(TAG, "Installing voice data: " + intent.toUri(0)); 
172:	startActivity(intent); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: toUri
152:	Log.i(TAG, "Launching intent: " + intent.toUri(0)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getStringExtra, resolveActivityInfo, toUri
121:	ActivityInfo ai = intent.resolveActivityInfo(pm, PackageManager.GET_ACTIVITIES); 
-
131:	return (friendlyName != null) ? friendlyName : intent.toUri(0); 
-
136:	String name = intent.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); 
-
141:	return name != null ? name : intent.toUri(0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemCount, getIcon
142:	Bitmap icon = mClipping.getIcon(); 
-
147:	if (mClipping.getItemCount() > 0) { 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
47:	targetClipData = new ClipData(null, mimeTypes, item); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getItemAt
65:	ClipData.Item item=clip.getItemAt(0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getItemCount, getIcon
142:	setVisibility(View.VISIBLE); 
-
147:	} else { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemAt, getItemCount
27:	if (cp.getItemCount() > 0) { 
28:	Item cpi = cp.getItemAt(0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemAt
75:	ClipData.Item item=clip.getItemAt(0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemCount, getIcon
143:	Bitmap icon = mClipping.getIcon(); 
-
148:	if (mClipping.getItemCount() > 0) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemAt
34:	return hasText(context) ? clip.getItemAt(0).coerceToText(context) : null; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemAt, getItemCount
69:	if (clip != null && clip.getItemCount() > 0) { 
70:	final CharSequence sequence = clip.getItemAt(0).coerceToText(mContext); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemAt
102:	ClipData.Item item = clip.getItemAt(0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getItemAt
102:	ClipData.Item item = clip.getItemAt(0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getItemAt, getItemCount
61:	if (cp.getItemCount() > 0) 
-
63:	Item cpi = cp.getItemAt(0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getItemAt
136:	clipData = (String) clip.getItemAt(0).getText(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getItemAt
110:	ClipData.Item item = clip.getItemAt(0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getItemAt
73:	+ data.getItemAt(0).getText()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
149:	ClipData clipData = new ClipData((CharSequence) v.getTag(), mimeType, item); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getItemAt
68:	Log.v(DROPTAG, "Item data is " + data.getItemAt(0).getText()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getDescription, getItemAt
175:	if (data.getDescription().hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) { 
176:	ClipData.Item item = data.getItemAt(0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getItemAt, getItemCount
111:	if (clip.getItemCount() > 0) { 
112:	inpURL.setText(clip.getItemAt(0).getText()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
47:	targetClipData = new ClipData(null, mimeTypes, item); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
57:	ClipData dragData = new ClipData((CharSequence) v.getTag(), 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
47:	targetClipData = new ClipData(null, mimeTypes, item); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
45:	ClipData dragData = new ClipData((CharSequence) v.getTag(), mimeTypes , item); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
31:	ClipData clip = new ClipData(text, new String[]{"text/plain"}, new ClipData.Item(text)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
23:	ClipData dragData = new ClipData("GridViewItem", mimeTypes, item); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
42:	ClipData cd = new ClipData(new ClipDescription("text_data", mimeType), item); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
136:	ClipData clipData = new ClipData("hello", new String[] 
Full Snippet Info
4
CodeRank
Related Intent toUri Questions & Answers:
toUri Method Overview
Convert this Intent into a String holding a URI representation of it.
See Also