summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2014-05-06 23:53:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-06 23:53:22 +0000
commitfe99729539c8e51ce13c88dd9c999a458032356a (patch)
tree4d5875723f1a62afb4721688ba6fdbfa331739fd /docs
parent17c5e990379baf887221c0776b4152613c2a8a2d (diff)
parent01dc133b35021878b9c7c45d862cacb2b7645a4d (diff)
downloadframeworks_base-fe99729539c8e51ce13c88dd9c999a458032356a.zip
frameworks_base-fe99729539c8e51ce13c88dd9c999a458032356a.tar.gz
frameworks_base-fe99729539c8e51ce13c88dd9c999a458032356a.tar.bz2
am 01dc133b: am f1bc39b8: fix code error. The data type was wrong, but it\'s actually not needed.
* commit '01dc133b35021878b9c7c45d862cacb2b7645a4d': fix code error. The data type was wrong, but it's actually not needed.
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/components/intents-common.jd2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/guide/components/intents-common.jd b/docs/html/guide/components/intents-common.jd
index a0f7ce1..b4813a5 100644
--- a/docs/html/guide/components/intents-common.jd
+++ b/docs/html/guide/components/intents-common.jd
@@ -737,7 +737,7 @@ so you can populate fields of the contact details.
<pre>
public void editContact(Uri contactUri, String email) {
Intent intent = new Intent(Intent.ACTION_EDIT);
- intent.setDataAndType(contactUri, Contacts.CONTENT_TYPE);
+ intent.setData(contactUri);
intent.putExtra(Intents.Insert.EMAIL, email);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);