summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2014-05-07 00:00:20 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-07 00:00:20 +0000
commit3b23c019cf8d78e199ac56f677a6896f9667b868 (patch)
tree0b9549be099d47f6e72ec8ef4090ff3c007fc0c3 /docs
parent5269a01c6d47b3a37736d9b30f24e091710ff064 (diff)
parentb5342f965b19a053b093f554930893b91c2e763e (diff)
downloadframeworks_base-3b23c019cf8d78e199ac56f677a6896f9667b868.zip
frameworks_base-3b23c019cf8d78e199ac56f677a6896f9667b868.tar.gz
frameworks_base-3b23c019cf8d78e199ac56f677a6896f9667b868.tar.bz2
am b5342f96: am fe997295: am 01dc133b: am f1bc39b8: fix code error. The data type was wrong, but it\'s actually not needed.
* commit 'b5342f965b19a053b093f554930893b91c2e763e': 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);